Coder Social home page Coder Social logo

wildlifetradenetworks / pycites Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 139 KB

A Python package to download and interact with the CITES trade database

License: MIT License

Python 93.37% Makefile 6.63%
python wildlife dataset hacktoberfest cites

pycites's Introduction

pycites

pycites is a package to download and interact with the CITES Trade Database using Python. citesdb exists for R users to load and analzyes this data, so we wanted a way to do the same!

Currently very much a work in progress. Currently only downloads and loads data.

Installation

pip install pycites

Usage instructions

To download the CITES Trade Database and load into a dataframe, run the following in a Jupyter notebook or Python shell:

import pycites

pycites.get_data()
df = pycites.load_data()

This will download and extract the zip file from the CITES website, do some basic data validation (e.g. drop rows with missing or incorrect Years), and combine the data into a single compressed CSV file. This uses a decent amount of memory, so may cause issues on a machines with low resource.

Roadmap

  • Release a CSV to make it easier for users to download and load data
  • Experiement with other data formats for better memory usage of data (currently pretty high)
  • Add a CLI for downloading data
  • Include metadata and other useful information, like citesdb
  • Add additional functionality for analysis (time series and network analyses), and integrate with other data sources (such as World Bank)
  • Setup CI and testing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.