Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Factory Pandas is an alternative to fixtures for pandas.

Project Description


Factory Pandas is an alternative to pandas(DataFrame, Series) testing fixtures.

import pandas as pd
import factory_pandas as fp

# Define Pandas's DataFrame structure
class SampleDataFrameFactory(fp.DataFrameFactory):
    row_num = 5
    column_num = 2
    label1 = fp.IntegerColumnFactory('label1', min_value=0, max_value=10)
    label2 = fp.FloatColumnFactory('label2', min_value=0, max_value=10)

# returns DataFrame Object
sample_data_frame = SampleDataFrameFactory.create()


0.0.0 (2015-05-17)

Create this project.

Release History

Release History

This version
History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting