It provides a special namespace on your DataFrame, ww, which contains the physical, logical, and semantic data types. It can be used with Featuretools, EvalML, and general machine learning applications where logical and semantic typing information is important.
ww
Woodwork provides simple interfaces for adding and updating logical and semantic typing information, as well as selecting data columns based on the types.
Below is an example of using Woodwork to automatically infer the Logical Types for a DataFrame and select columns with specific types.
[1]:
import woodwork as ww df = ww.demo.load_retail(nrows=100, init_woodwork=False) df.ww.init(name="retail") df.ww
[2]:
filtered_df = df.ww.select(include=['numeric', 'Boolean']) filtered_df.head(5)