Skip to content

Commit

Permalink
Fix pandas deprecations (#7496)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasMasuch committed Oct 4, 2023
1 parent c9af91b commit 3607b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/streamlit/elements/lib/column_config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ def _determine_data_kind_via_pandas_dtype(
if pd.api.types.is_timedelta64_dtype(column_dtype):
return ColumnDataKind.TIMEDELTA

if pd.api.types.is_period_dtype(column_dtype):
if isinstance(column_dtype, pd.PeriodDtype):
return ColumnDataKind.PERIOD

if pd.api.types.is_interval_dtype(column_dtype):
if isinstance(column_dtype, pd.IntervalDtype):
return ColumnDataKind.INTERVAL

if pd.api.types.is_complex_dtype(column_dtype):
Expand Down

0 comments on commit 3607b38

Please sign in to comment.