Skip to content

CLN: remove unused freq kwarg in libparsing #35167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions pandas/_libs/tslibs/parsing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ cdef inline bint does_string_look_like_time(str parse_string):

def parse_datetime_string(
str date_string,
object freq=None,
bint dayfirst=False,
bint yearfirst=False,
**kwargs,
Expand Down Expand Up @@ -228,7 +227,7 @@ def parse_datetime_string(
return dt

try:
dt, _ = _parse_dateabbr_string(date_string, _DEFAULT_DATETIME, freq)
dt, _ = _parse_dateabbr_string(date_string, _DEFAULT_DATETIME, freq=None)
return dt
except DateParseError:
raise
Expand Down Expand Up @@ -265,9 +264,6 @@ def parse_time_string(arg: str, freq=None, dayfirst=None, yearfirst=None):
-------
datetime, datetime/dateutil.parser._result, str
"""
if not isinstance(arg, str):
raise TypeError("parse_time_string argument must be str")

if is_offset_object(freq):
freq = freq.rule_code

Expand Down