Skip to content

Release 0.29.0: support list, dict, and tuple of dataframes

Latest

Choose a tag to compare

@cosmicBboy cosmicBboy released this 29 Jan 02:48
· 8 commits to main since this release
7614754

⭐️ Highlight

Pandera now supports collection types containing dataframes, shoutout to @garethellis0 with an amazing first contribution!

@pa.check_types
def process_tuple_and_return_dict(
    dfs: tuple[DataFrame[OnlyZeroesSchema], DataFrame[OnlyOnesSchema]],
) -> dict[str, DataFrame[OnlyZeroesSchema]]:
    return {
        "foo": dfs[0],
        "bar": dfs[0]
    }


result = process_tuple_and_return_dict((
    pd.DataFrame({"a": [0, 0]}),
    pd.DataFrame({"a": [1, 1]}),
))
print(result)

What's Changed

New Contributors

Full Changelog: v0.28.1...v0.29.0