PyAthena icon indicating copy to clipboard operation
PyAthena copied to clipboard

FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas.

Open laughingman7743 opened this issue 3 months ago • 0 comments

tests/pyathena/pandas/test_cursor.py::TestPandasCursor::test_complex[pandas_cursor0-None] tests/pyathena/pandas/test_cursor.py::TestPandasCursor::test_complex[pandas_cursor1-1000] tests/pyathena/pandas/test_cursor.py::TestPandasCursor::test_complex_as_pandas[pandas_cursor0-None] tests/pyathena/pandas/test_cursor.py::TestPandasCursor::test_complex[pandas_cursor2-1000000] tests/pyathena/pandas/test_cursor.py::TestPandasCursor::test_complex_as_pandas[pandas_cursor1-1000] tests/pyathena/pandas/test_cursor.py::TestPandasCursor::test_complex_as_pandas[pandas_cursor2-1000000] /home/runner/work/PyAthena/PyAthena/pyathena/pandas/result_set.py:214: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[datetime.time(0, 0)]' has dtype incompatible with datetime64[ns], please explicitly cast to a compatible dtype first. df.loc[:, times] = df.loc[:, times].apply(lambda r: r.dt.time)

laughingman7743 avatar Mar 17 '24 15:03 laughingman7743