| 1 |
Metadata-Version: 2.4 |
| 2 |
Name: raccoon |
| 3 |
Version: 4.0 |
| 4 |
Summary: Python DataFrame with fast insert and appends |
| 5 |
Author-email: Ryan Sheftel <[email protected]> |
| 6 |
License: MIT |
| 7 |
Project-URL: Homepage, https://github.com/rsheftel/raccoon |
| 8 |
Project-URL: Source, https://github.com/rsheftel/raccoon |
| 9 |
Project-URL: Documentation, https://raccoon.readthedocs.io/en/latest/ |
| 10 |
Keywords: dataframe,data,structure |
| 11 |
Classifier: Development Status :: 5 - Production/Stable |
| 12 |
Classifier: Intended Audience :: Developers |
| 13 |
Classifier: Topic :: Software Development |
| 14 |
Classifier: License :: OSI Approved :: MIT License |
| 15 |
Classifier: Programming Language :: Python :: 3.12 |
| 16 |
Classifier: Programming Language :: Python :: 3.13 |
| 17 |
Classifier: Programming Language :: Python :: 3.14 |
| 18 |
Requires-Python: >=3.12 |
| 19 |
Description-Content-Type: text/x-rst |
| 20 |
License-File: LICENSE |
| 21 |
Requires-Dist: tabulate |
| 22 |
Dynamic: license-file |
| 23 |
|
| 24 |
raccoon |
| 25 |
======= |
| 26 |
Python DataFrame with fast insert and appends |
| 27 |
|
| 28 |
.. image:: https://badge.fury.io/py/raccoon.svg |
| 29 |
:target: https://badge.fury.io/py/raccoon |
| 30 |
|
| 31 |
.. image:: https://readthedocs.org/projects/raccoon/badge/?version=latest |
| 32 |
:target: http://raccoon.readthedocs.io/en/latest/?badge=latest |
| 33 |
:alt: Documentation Status |
| 34 |
|
| 35 |
Documentation |
| 36 |
------------- |
| 37 |
http://raccoon.readthedocs.io/en/latest/ |
| 38 |
|
| 39 |
Source location |
| 40 |
~~~~~~~~~~~~~~~ |
| 41 |
Hosted on GitHub: https://github.com/rsheftel/raccoon |
| 42 |
|
| 43 |
Overview |
| 44 |
-------- |
| 45 |
Raccoon is a lightweight DataFrame and Series implementation inspired by the phenomenal Pandas package for the one use |
| 46 |
case where Pandas is known to be sub-optimal: DataFrames and Series that grow in size by adding rows frequently in the code. |
| 47 |
Additionally Raccoon DataFrames and Series can be parametrized to be sorted so that additions to the DataFrame keep the |
| 48 |
index in sorted order to speed inserts and retrievals. |
| 49 |
|
| 50 |
A simple speed comparison of Raccoon vs Pandas for typical functionality is located in the documentation. |
| 51 |
|
| 52 |
Inspiration |
| 53 |
~~~~~~~~~~~ |
| 54 |
Pandas DataFrames and Series are excellent multi-purpose data structures for data management and analysis. One of the |
| 55 |
use cases I had was to use DataFrames as a type of in-memory database table. The issue was that this required lots of |
| 56 |
growing the number rows of the DataFrame, something that is known to be slow in Pandas. The reason it is slow in Pandas is that |
| 57 |
the underlying data structure is numpy which does a complete copy of the data when the size of the array grows. |
| 58 |
|
| 59 |
Functionality |
| 60 |
~~~~~~~~~~~~~ |
| 61 |
Raccoon implements what is needed to use the DataFrame as an in memory store of index and column data structure |
| 62 |
supporting simple and tuple indexes to mimic the hierarchical indexes of Pandas. The methods included are primarily |
| 63 |
about setting values of the data frame, growing and appending the data frame and getting values from the data frame. |
| 64 |
The raccoon DataFrame is not intended for math operations like pandas and only limited basic math methods are included. |
| 65 |
|
| 66 |
Underlying Data Structure |
| 67 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 68 |
Raccoon uses the standard built in lists as its underlying data structure. |
| 69 |
|
| 70 |
Why Raccoon? |
| 71 |
~~~~~~~~~~~~ |
| 72 |
According to wikipedia some scientists believe the panda is related to the raccoon |
| 73 |
|
| 74 |
Contributing |
| 75 |
~~~~~~~~~~~~ |
| 76 |
Contribution in the form of pull requests are welcome. Use pytest to run the test suite. Be sure any new additions |
| 77 |
come with accompanying tests. |
| 78 |
|
| 79 |
Future |
| 80 |
~~~~~~ |
| 81 |
This package serves the needs it was originally created for. Any future additions by myself will be driven by my own |
| 82 |
needs, but it is completely open source so I encourage anyone to add on and expand. |
| 83 |
|
| 84 |
My hope is that one day Pandas solves the speed problem with growing DataFrames and this package becomes obsolete. |
| 85 |
|
| 86 |
Python Version |
| 87 |
~~~~~~~~~~~~~~ |
| 88 |
Raccoon requires Python 3.11 or greater. Python 2.7 support was eliminated as of version 3.0. If you need to use raccoon |
| 89 |
with Python 2.7 use any version less than 3.0. Version 4.0 removed the concept of a dropin and now Raccoon only |
| 90 |
uses built in lists as its underlying data structure. |
| 91 |
|
| 92 |
Helper scripts |
| 93 |
~~~~~~~~~~~~~~ |
| 94 |
There is helper function to generate these docs from the source code. On windows cd into the docs directory and |
| 95 |
execute make_docs.bat from the command line. To run the test coverage report run the coverage.sh script. |