Skip to content

Commit

Permalink
rename the variable freqstr in _field_accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
natmokval committed May 9, 2024
1 parent 57a834e commit d77f248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandas/core/arrays/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ def f(self):
month_kw = kwds.get("startingMonth", kwds.get("month", 12))

if freq is not None:
freqstr = to_offset(freq.freqstr).name
freq_name = to_offset(freq.freqstr).name
else:
freqstr = freq
freq_name = None
result = fields.get_start_end_field(
values, field, freqstr, month_kw, reso=self._creso
values, field, freq_name, month_kw, reso=self._creso
)
else:
result = fields.get_date_field(values, field, reso=self._creso)
Expand Down

0 comments on commit d77f248

Please sign in to comment.