You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
insert_df fails with pandas 2.1.0 (I realize it just came out today) due to use of a removed (and I guess internal (?)) API.
Steps to reproduce
In [1]: import pandas as pd
In [2]: import clickhouse_connect as cc
In [3]: client = cc.get_client()
In [4]: client.raw_query("create temporary table t (a Nullable(Timestamp))")
Out[4]: b''
In [5]: client.insert_df("t", pd.DataFrame({"a": [pd.Timestamp("now")]}))
...
AttributeError: module 'pandas.core.dtypes.common' has no attribute 'is_datetime_or_timedelta_dtype'
Expected behaviour
I can insert a dataframe with timestamp columns
Configuration
Environment
clickhouse-connect version: 0.6.10
Python version: 3.10.12
Operating system: Linux
ClickHouse server
ClickHouse Server version: 23.7.5.30
ClickHouse Server non-default settings, if any: None that I am aware of
CREATE TABLE statements for tables involved: See steps to reproduce
The text was updated successfully, but these errors were encountered:
Describe the bug
insert_df
fails with pandas 2.1.0 (I realize it just came out today) due to use of a removed (and I guess internal (?)) API.Steps to reproduce
Expected behaviour
I can insert a dataframe with timestamp columns
Configuration
Environment
ClickHouse server
CREATE TABLE
statements for tables involved: See steps to reproduceThe text was updated successfully, but these errors were encountered: