##### UNDER CONSTRUCTION #####
magicpandas
magicpandas makes working with pandas dead simple.
Main Features
- MagicDataFrame subclasses DataFrame to make existing methods more intuitive as well as add new methods
- MagicDataFrame adds verbose labels that are used by default when displaying data
- MagicDataFrame supports Django ORM
- inspectdf uses DataFrame column types to produce a Django model class (cf. inspectdb)
- to_django saves the DataFrame to SQL using Django ORM's bulk_update and bulk_create.
Installation
pip install magicpandas
Examples
from magicpandas import MagicDataFrame
mdf = MagicDataFrame(df)
mdf2 = mdf.drop('*e', axis=1) # df2 drops all columns ending in "e"
mdf.browse() # opens the DataFrame in MS Excel with nice formatting
mdf.browse(client='webbrowser') # opens the DataFrame as html displayed in Chrome with nice formatting
mdf.graph() # Opens a graph in Chrome using the excellent Altair library using sensible encodings
mdf.inspect_for_django() # prints text that corresponds to a Django model definition
Philosophy
- Convention over configuration
- Employs Altair rather than than matplotlib because it's web first and based on the Grammar of Graphics
- Employs MS Excel for data browsing
- There should be little gap between intention and implementation
Metadata
Release files for magicpandas 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| magicpandas-0.0.4.tar.gz | 22.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| magicpandas-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.1 kB
Release files / magicpandas-0.0.4.tar.gz
| Download URL | magicpandas-0.0.4.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
436d0680d36fbabf95860f69f882495598f6b96d28f16749114f1487de3869f4
|
|
BLAKE2b-256 checksum How to use checksums |
94ea3afb30db53f72892ef9126bd2f4090757b6ee8cc5af056a8ffb0788ebe7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / magicpandas-0.0.4-py3-none-any.whl
| Download URL | magicpandas-0.0.4-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1a8eb522ca302b2894573ebe6a02f0bc2bd14f7a7b1f8e256d8800a7a9a6063
|
|
BLAKE2b-256 checksum How to use checksums |
6c65a02f2d332a794e5295b14ffce88d6e9fe36ce6669046ec573b9f010be550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|