Skip to content

Commit

Permalink
BUG: guess_datetime_format fails to read 13/2019 in dateutil==2.8.1 (#…
Browse files Browse the repository at this point in the history
…49145)

* ⬆️ increase minimum python-dateutil version

* add 13/2019 test case

Co-authored-by: MarcoGorelli <>
  • Loading branch information
MarcoGorelli committed Oct 17, 2022
1 parent 7ebc3e8 commit 9415ce2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/deps/actions-38-minimum_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- boto3

# required dependencies
- python-dateutil=2.8.1
- python-dateutil=2.8.2
- numpy=1.20.3
- pytz=2020.1

Expand Down
2 changes: 1 addition & 1 deletion doc/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Dependencies
Package Minimum supported version
================================================================ ==========================
`NumPy <https://numpy.org>`__ 1.20.3
`python-dateutil <https://dateutil.readthedocs.io/en/stable/>`__ 2.8.1
`python-dateutil <https://dateutil.readthedocs.io/en/stable/>`__ 2.8.2
`pytz <https://pypi.org/project/pytz/>`__ 2020.1
================================================================ ==========================

Expand Down
2 changes: 2 additions & 0 deletions doc/source/whatsnew/v2.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ If installed, we now require:
+=================+=================+==========+=========+
| mypy (dev) | 0.981 | | X |
+-----------------+-----------------+----------+---------+
| python-dateutil | 2.8.2 | X | X |
+-----------------+-----------------+----------+---------+

For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html>`_ the general recommendation is to use the latest version.
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
Expand Down
1 change: 1 addition & 0 deletions pandas/tests/tslibs/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def test_guess_datetime_format_with_locale_specific_formats(string, fmt):
"1/1/1/1",
"this_is_not_a_datetime",
"51a",
"13/2019",
],
)
def test_guess_datetime_format_invalid_inputs(invalid_dt):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ packages = find:
install_requires =
numpy>=1.20.3; python_version<'3.10'
numpy>=1.21.0; python_version>='3.10'
python-dateutil>=2.8.1
python-dateutil>=2.8.2
pytz>=2020.1
python_requires = >=3.8
include_package_data = True
Expand Down

0 comments on commit 9415ce2

Please sign in to comment.