Skip to content

Commit 9415ce2

Browse files
authored
BUG: guess_datetime_format fails to read 13/2019 in dateutil==2.8.1 (#49145)
* ⬆️ increase minimum python-dateutil version * add 13/2019 test case Co-authored-by: MarcoGorelli <>
1 parent 7ebc3e8 commit 9415ce2

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

ci/deps/actions-38-minimum_versions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- boto3
1717

1818
# required dependencies
19-
- python-dateutil=2.8.1
19+
- python-dateutil=2.8.2
2020
- numpy=1.20.3
2121
- pytz=2020.1
2222

doc/source/getting_started/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Dependencies
236236
Package Minimum supported version
237237
================================================================ ==========================
238238
`NumPy <https://numpy.org>`__ 1.20.3
239-
`python-dateutil <https://dateutil.readthedocs.io/en/stable/>`__ 2.8.1
239+
`python-dateutil <https://dateutil.readthedocs.io/en/stable/>`__ 2.8.2
240240
`pytz <https://pypi.org/project/pytz/>`__ 2020.1
241241
================================================================ ==========================
242242

doc/source/whatsnew/v2.0.0.rst

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ If installed, we now require:
9999
+=================+=================+==========+=========+
100100
| mypy (dev) | 0.981 | | X |
101101
+-----------------+-----------------+----------+---------+
102+
| python-dateutil | 2.8.2 | X | X |
103+
+-----------------+-----------------+----------+---------+
102104

103105
For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html>`_ the general recommendation is to use the latest version.
104106
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.

pandas/tests/tslibs/test_parsing.py

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def test_guess_datetime_format_with_locale_specific_formats(string, fmt):
214214
"1/1/1/1",
215215
"this_is_not_a_datetime",
216216
"51a",
217+
"13/2019",
217218
],
218219
)
219220
def test_guess_datetime_format_invalid_inputs(invalid_dt):

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ packages = find:
3333
install_requires =
3434
numpy>=1.20.3; python_version<'3.10'
3535
numpy>=1.21.0; python_version>='3.10'
36-
python-dateutil>=2.8.1
36+
python-dateutil>=2.8.2
3737
pytz>=2020.1
3838
python_requires = >=3.8
3939
include_package_data = True

0 commit comments

Comments
 (0)