wildlifetradenetworks / pycites Goto Github PK
View Code? Open in Web Editor NEWA Python package to download and interact with the CITES trade database
License: MIT License
A Python package to download and interact with the CITES trade database
License: MIT License
The original motivation for this package, citesdb
, assembles the CITES data and releases it as a GitHub package, and then provides means to download it and access metadata.
Another Python data interface interface based on an R package, nhanes
, includes data directly in the repo, along with metadata info.
CITES is quite large, so following the approach of citesdb
makes sense here as well. Necessary tasks are to:
pycites
users could rebuild their own dataset, but the recommended usage will just pull the file from releases and load it innhanes
)With 20 million rows, pandas is quite slow for reading in data and manipulating it. After a quick assessment of modin
and vaex
, vaex
seems like an easy to use and fast solution. modin
was a bit slow for my use case. dask
is another option, but based on benchmarks posted online, it also seems like it won't lead to much speed up over raw pandas (though lazy evaluation would probably lead to less swapping).
Unfortunately the program exits with an out of memory error:
pandas.errors.ParserError: Error tokenizing data. C error: out of memory
My machine has 16 GB of RAM, hoping this is sufficient for the script to run.
Is there anything I can do to make it run? I am not as proficient in python as you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.