Skip to main content

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

magicpandas-0.0.1-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page