Skip to content

Commit 674df7f

Browse files
committed
fix pandas 2.0 warnings
1 parent d2f6034 commit 674df7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/questdb/dataframe.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ cdef ssize_t _dataframe_resolve_at(
720720
f'Bad argument `at`: Unsupported type {_fqn(type(at))}. ' +
721721
'Must be one of: None, TimestampNanos, datetime, ' +
722722
'int (column index), str (colum name)')
723-
dtype = df.dtypes[col_index]
723+
dtype = df.dtypes.iloc[col_index]
724724
if _dataframe_is_supported_datetime(dtype):
725725
at_value_out[0] = _AT_IS_SET_BY_COLUMN
726726
col = &cols.d[col_index]
@@ -1114,7 +1114,7 @@ cdef void_int _dataframe_resolve_args(
11141114
cdef ssize_t at_col
11151115

11161116
cdef list pandas_cols = [
1117-
PandasCol(name, df.dtypes[index], series)
1117+
PandasCol(name, df.dtypes.iloc[index], series)
11181118
for index, (name, series) in enumerate(df.items())]
11191119
_dataframe_resolve_cols(b, pandas_cols, cols, any_cols_need_gil_out)
11201120
name_col = _dataframe_resolve_table_name(

0 commit comments

Comments
 (0)