a data typing library for machine learning
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install woodworkWoodwork provides a common typing namespace for using your existing DataFrames in Featuretools, EvalML, and general ML. A Woodwork DataFrame stores the physical, logical, and semantic data types present in the data. In addition, it can store metadata about the data, allowing you to store specific information you might need for your application.
Installation
Install with pip:
python -m pip install woodwork
or from the conda-forge channel on conda:
conda install -c conda-forge woodwork
Add-ons
Update checker - Receive automatic notifications of new Woodwork releases
python -m pip install "woodwork[updater]"
Example
Below is an example of using Woodwork. In this example, a sample dataset of order items is used to create a Woodwork DataFrame, specifying the LogicalType for five of the columns.
import pandas as pd
import woodwork as ww
df = pd.read_csv("https://oss.alteryx.com/datasets/online-retail-logs-2018-08-28.csv")
df.ww.init(name='retail')
df.ww.set_types(logical_types={
'quantity': 'Integer',
'customer_name': 'PersonFullName',
'country': 'Categorical',
'order_id': 'Categorical',
'description': 'NaturalLanguage',
})
df.ww