Woodwork is a data typing library for machine learning, extending pandas DataFrames and Series with semantic and logical typing capabilities. It enables automatic data typing inference, validation, and schema management for robust data pipelines. Currently at version 0.31.0, it is actively maintained by Alteryx with frequent updates.
pip install woodworkVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize Woodwork on a pandas DataFrame, allowing it to automatically infer logical types for your columns. It then prints the inferred schema, logical types, and the specific logical type for the 'email' column.
Replace `from woodwork.api import init; init(df)` with `import woodwork as ww; df.ww.init()`.
If you relied on `woodwork` automatically 'boxing' Series or DataFrames into Woodwork structures upon creation, you may now need to explicitly call `df.ww.init()` or set `infer_box_type_on_init=True` during initialization.
Upgrade your Python environment to 3.9 or higher. (e.g., Python 3.9, 3.10, 3.11, etc.)
Use `df.ww.set_types(column_logical_types={'column_name': 'NewLogicalType'})` or `df.ww.set_types(logical_types={'column_name': 'NewLogicalType'})` instead.