Comments (3)
Thanks for the report! pandas could not guess the format of the second string so it relied on the dateutil
library for parsing it which does not take the dayfirst
parameter in consideration. It's generally best to provide the format
parameter for when you're using unusual date formats.
I suppose we should at least warn for when dayfirst is provided and the date format wasn't guessed (cc @MarcoGorelli)
from pandas.
thanks @apj-graham for the report
It's not dateutil, it's pandas' own parser here, looks like dayfirst
isn't getting passed to
pandas/pandas/_libs/tslibs/conversion.pyx
Lines 609 to 612 in cbe1b32
And it probably shouldn't - that path should only be used for iso8601-like strings
I think the fix here is to not use that path if dayfirst
was specified - @Aloqeely do you want to repurpose your PR to do that?
from pandas.
Thanks for the correction.
do you want to repurpose your PR to do that?
Alright, I'll take a look
from pandas.
Related Issues (20)
- BUG: "Bad CRC-32 for file'docProps/core.xml" for Read large Excel file HOT 1
- BUG: Incorrect float32/float64 comparison result HOT 7
- BUG: import has error HOT 2
- BUG: subtracting datetime series from datetime dataframe, or datetime dataframe from datetime series, raises TypeError or UFuncTypeError HOT 2
- BUG: read_csv's usecols type hint isn't match with list of strings HOT 2
- BUG: OverflowError: value too large to convert to int when manipulating very large dataframes HOT 6
- DOC: Wrong bug number in what's new v3.0.0 HOT 3
- ENH: Checking gaps for time series
- ENH: Support non-categorical values for pandas bar plots when x axis is datetime values HOT 1
- ENH: In pandas.testing.assert_frame_equal, support per-column configuration HOT 1
- DOC: read_csv: date_format HOT 2
- ENH: Breakpoint method for dataframes HOT 1
- BUG: inconsistency when `read_csv` reads MultiIndex with empty values
- BUG: .str.contains `na` validation HOT 3
- ENH: Option to configure line wrapping for columns HOT 4
- BUG: inconsistent indices in `GroupByRolling` when selecting or not selecting subset of columns
- BUG: provide better error message for pd.Timedelta - pd.Series[Timestamp] HOT 3
- BUG: Wrong result of Kurtosis HOT 2
- BUG: StringDtype conversion to bool changes False to True HOT 3
- Development with Visual Studio Tools 2022 not possible? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas.