Skip to content

Commit

Permalink
code sample for pandas-dev#42505
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed Jul 19, 2021
1 parent 8f74ba9 commit 7e86855
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bisect/42505.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# BUG: Regression - AmbiguousTimeError creating DataFrame #42505

import pandas as pd

print(pd.__version__)

dt = pd.to_datetime("2019-11-03 01:00:00-0700").tz_convert("America/Los_Angeles")

result = pd.DataFrame({"dt": dt, "value": [1]})
print(result)
print(result.dtypes)

0 comments on commit 7e86855

Please sign in to comment.