Skip to content

Commit

Permalink
Merge branch 'master' into pandas-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer authored Nov 10, 2024
2 parents 8d45fbe + 6cfa08b commit c1507b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions augur/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def fix_dates(d: str, dayfirst: bool = True) -> str:
'''
try:
try:
# pandas <2.2
from pandas.core.tools.datetimes import parsing # type: ignore
# pandas <= 2.1
from pandas.core.tools.datetimes import parsing # type: ignore
except ImportError:
# pandas >=2.2
from pandas._libs.tslibs import parsing # type: ignore
# pandas >= 2.2
from pandas._libs.tslibs import parsing
try:
# pandas <2
results = parsing.parse_time_string(d, dayfirst=dayfirst)
Expand Down

0 comments on commit c1507b2

Please sign in to comment.