Coder Social home page Coder Social logo

lambdata-josemarquez89's Introduction

Jose's Lambdata Package

A set of tools for pandas dataframe operations

Installation

To install jose_lambdata use pip:

pip install -i https://test.pypi.org/simple/ lambdata-josemarquez89

Usage

As of this release, there are 2 main tools in the package. The DataFrameOperator class contains a .decompose_time() method that allows decomposition of full date columns into separate year, month and day features, while .auto_split() automatically splits into a train, validate and test set. The second tool in the package is the get_chi2() function, which returns a contingency table along with a chi squared report.

You can instantiate the DataFrameOperator and use its methods as shown below:

import pandas as pd
from jose_lambdata.dftools import DataFrameOperator

df = pd.read_csv('some_url.csv')

df_operator = DataFrameOperator(df)

train, val, test = df_operator.auto_split()

df_operator.decompose_time('some_date_feature')

To use the get_chi2() function:

get_chi2(df, 'first_feature', 'second_feature')

This will return a contingency table with IPython and uses sklearn to get chi squared, the p value and degrees of freedom.

lambdata-josemarquez89's People

Contributors

jose-marquez89 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.