Giter VIP home page Giter VIP logo

pd-extras's Introduction

Pandas Extras

Build, test with Tox and deploy codecov Documentation Status

PyPI - Python Version PyPI - Version Docker Image Version (tag) Docker Image Version (tag)

Some functions on top of pandas.

Install Environment

For local development:

  • Run python -m pip install -U pip and pip install -U pip poetry
  • Run poetry install. If you are facing issues installing mysqlclient or psycopg2 on Ubuntu, it's because you are missing some libraries. Please check their pages. Usually for psycopg2, it's libpq-dev and for mysqlclient, it's python3-dev default-libmysqlclient-dev build-essential. Check the pages for more specific and accurate commands.

Testing

Run docker compose up then tox. Obviously you need docker and tox installed.

Generate Documentation Source Files

You should not have to do this but in case you want to generate the source ReStructuredText files yourself, here is how. Skip to the next section to simply generate html documentation locally.

Change to docs directory cd docs/. Run sphinx-quickstart. Choose y when it asks to seperate build and source directories.

Change to docs/source directory. In conf.py, add the following lines at the start of the script.

import os
import sys

sys.path.insert(0, os.path.abspath("../.."))

and save it. Add "sphinx.ext.autodoc", to the extensions list. Run python -m pip install -U sphinx_rtd_theme and set html_theme = "sphinx_rtd_theme" (or whatever theme you want).

In index.rst, add modules to toctree. The structure should look like this:

.. toctree::
:maxdepth: 2
:caption: Contents:

modules

Run the following to generate the source files.

poetry install --with docs
poetry run sphinx-apidoc -f -o source/ ../ ../tests/

Generating HTML Documentation

Change to docs/ using cd .. then run .\make clean and .\make html. Output should be built with no errors or warnings. You will get the html documenation in docs/build/html directory. Open index.html.

pd-extras's People

Contributors

proafxin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.