Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load Pandas Datetime #11993

Open
2 tasks done
jrdzha opened this issue May 9, 2024 · 2 comments
Open
2 tasks done

Can't load Pandas Datetime #11993

jrdzha opened this issue May 9, 2024 · 2 comments

Comments

@jrdzha
Copy link

jrdzha commented May 9, 2024

What happens?

Loading a pandas datetime causes unknown time zone issue. This breaks for pandas==2.2.2 and duckdb==0.10.2, but works for pandas==2.2.2 and duckdb==0.8.1.

To Reproduce

python3 -m pip install pandas==2.2.2 duckdb==0.10.2
import duckdb
import pandas as pd

df = pd.DataFrame({
    "a": ["2024-03-19 16:27:00-04:00", "2024-03-19 16:27:00-04:00", "2024-03-19 16:27:00-04:00"]
})

df["a"] = pd.to_datetime(df["a"])

conn = duckdb.connect(":memory:")
conn.register("df", df)
conn.execute("SELECT * FROM df").fetchdf()

OS:

x86 Linux

DuckDB Version:

0.10.2

DuckDB Client:

Python

Full Name:

Jared Zhao

Affiliation:

Athenic

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have
@soerenwolfers
Copy link

You didn't include an error message

@szarnyasg
Copy link
Collaborator

szarnyasg commented May 13, 2024

@jrdzha I did not get an error when running the reproduction script. Could you please add a reproducible example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants