I am using the Rapids library for Pandas. On top of my code:
import cudf.pandas
cudf.pandas.install()
import pandas as pd
I'm using https://clickhouse-driver.readthedocs.io/en/latest/ and client.insert_dataframe
method. When I'm trying to insert data, faced with the error:
TypeError: Unsupported column type: <class 'cudf.pandas._wrappers.numpy.ndarray'>. list or tuple is expected.
I don't know why is happening, checked datetypes of columns they are floats and datetimes.
Please tell me how to convert a dataframe to a view that can be inserted with clickhouse-client
According to the docs, the proper way to use
cudf.pandas
on your code is to:Please see https://docs.rapids.ai/api/cudf/stable/cudf_pandas/usage for more detailed usage examples.