Skip to main content

Categorical variable friendly pandas data frames

Project description


$ pip install dummipy

Let it out of the box…

from sklearn.linear_model import LinearRegression
from dummipy import cereal

# CategoricalDataFrame

reg = LinearRegression()[['mfr', 'vitamins', 'fat']], cereal.calories)


You’ll need `pandas <>`__, but any old version will do the trick. There is no pandas version pegged in the file so installing dummipy won’t mess up your existing sci-py setup.

$ pip install dummipy


Just use it like any old data frame. That’s really all there is to it.

import dummipy as dp

df = dp.CategoricalDataFrame({
    "x": range(5),
    "y": ["a", "b", "c", "a", "b"]

df = pd.read_csv("foo.csv")
df = dp.CategoricalDataFrame(df)

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

dummipy-0.0.1.tar.gz (5.7 kB view hashes)

Uploaded source

Built Distribution

dummipy-0.0.1-py2.7.egg (8.9 kB view hashes)

Uploaded 2 7

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