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.2.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for magicpandas-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c85e6fcd84a1639eed40d1c6ae4727b0b89f1d8c9242d821570ddf560f2a835b |
|
MD5 | a89a3412773ee4e89ab2cb01d9967fd4 |
|
BLAKE2b-256 | 7c762f2a5e08036ec1bd8398a5d9da8478bb6238de1b8feb340a8ec03a96f062 |