Commit 1d5f05c
authored
PDEP0004: implementation (#49024)
* 🗑️ deprecate infer_datetime_format, make strict
* 🚨 add warning about dayfirst
* ✅ add/update tests
* 🚨 add warning if format cant be guessed
* 🥅 catch warnings
* 📝 update docs
* 📝 add example of reading csv file with mixed formats
* 🗑️ removed now outdated tests / clean inputs
* 📝 clarify whatsnew and user-guide
* 🎨
* guess %Y-%m format
* Detect format from first non-na, but also exclude now and today
* ✅ fixup tests based on now and today parsing
* fixup after merge
* fixup after merge
* fixup test
* remove outdated doctest
* xfail test based on issue 49767
* wip
* add back examples of formats which can be guessed
* start fixing up
* fixups from reviews
* lint
* put tests back
* shorten diff
* add example of string which cannot be guessed
* add deprecated directive, construct expected explicitly, explicit UserWarning, reword row-wise and column-wise
* remove redundant example
* restore newline
* double backticks around False, explicitly raise UserWarning
* reword warning
* test both dayfirst True and False
* postmerge fixup
* unimportant typo to restart CI
Co-authored-by: MarcoGorelli <>1 parent cb223b3 commit 1d5f05c
File tree
25 files changed
+598
-544
lines changed- doc/source
- user_guide
- whatsnew
- pandas
- _libs/tslibs
- core/tools
- io/parsers
- tests
- extension
- frame/methods
- groupby
- indexes
- datetimes
- io
- parser
- common
- dtypes
- usecols
- xml
- plotting
- series/methods
- tools
- tslibs
25 files changed
+598
-544
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2312 | 2312 | | |
2313 | 2313 | | |
2314 | 2314 | | |
| 2315 | + | |
2315 | 2316 | | |
2316 | 2317 | | |
2317 | 2318 | | |
| |||
2328 | 2329 | | |
2329 | 2330 | | |
2330 | 2331 | | |
| 2332 | + | |
2331 | 2333 | | |
2332 | 2334 | | |
2333 | 2335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
| 971 | + | |
982 | 972 | | |
983 | 973 | | |
984 | 974 | | |
| |||
988 | 978 | | |
989 | 979 | | |
990 | 980 | | |
991 | | - | |
| 981 | + | |
992 | 982 | | |
993 | 983 | | |
994 | 984 | | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
995 | 992 | | |
996 | 993 | | |
997 | | - | |
998 | 994 | | |
999 | 995 | | |
1000 | 996 | | |
1001 | 997 | | |
1002 | | - | |
1003 | 998 | | |
1004 | 999 | | |
1005 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1006 | 1011 | | |
1007 | 1012 | | |
1008 | 1013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | | - | |
| 201 | + | |
200 | 202 | | |
201 | | - | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
207 | | - | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
211 | | - | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
217 | | - | |
218 | | - | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
414 | 446 | | |
415 | 447 | | |
416 | 448 | | |
| |||
453 | 485 | | |
454 | 486 | | |
455 | 487 | | |
456 | | - | |
| 488 | + | |
457 | 489 | | |
458 | 490 | | |
459 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
| 1035 | + | |
1035 | 1036 | | |
1036 | 1037 | | |
1037 | 1038 | | |
| |||
1051 | 1052 | | |
1052 | 1053 | | |
1053 | 1054 | | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1054 | 1077 | | |
1055 | 1078 | | |
1056 | 1079 | | |
| |||
0 commit comments