⭐️ 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
- feature/1078: Added Support For List, Dict, And Tuples Of Dataframes by @garethellis0 in #2204
- pin sphinx version by @cosmicBboy in #2208
- Add map datatype to the Ibis engine implementation by @deepyaman in #2206
New Contributors
- @garethellis0 made their first contribution in #2204
Full Changelog: v0.28.1...v0.29.0