A dead simple interface for manipulating pandas dataframes
Project description
##### 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.
Examples
df2 = df.drop('*e', axis=1) # df2 drops all columns ending in "e"
df.browse() # opens the DataFrame in MS Excel with nice formatting
df.browse(client='webbrowser') # opens the DataFrame as html displayed in Chrome with nice formatting
TODO
- chromify(chart.to_html())
- inspect_as_django_model
- to_django
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
magicpandas-0.0.3.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for magicpandas-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9986ac890ee3230d68df405586469126e87499028d96a794cb6b262d4b25fd50 |
|
MD5 | 8e443eb3e6d52ca7175be8e2f12c2ff7 |
|
BLAKE2b-256 | 6cb08741bce631172ac9952ef35e425eca1ffe1d8fb09daa6919a6fadeb6cb9c |