Skip to content

Commit

Permalink
rename the variable freqstr
Browse files Browse the repository at this point in the history
  • Loading branch information
natmokval committed May 10, 2024
1 parent c6d57c0 commit 6bbba80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -579,15 +579,15 @@ cdef class _Timestamp(ABCTimestamp):
if freq:
kwds = freq.kwds
month_kw = kwds.get("startingMonth", kwds.get("month", 12))
freqstr = freq.name
freq_name = freq.name
else:
month_kw = 12
freqstr = None
freq_name = None

val = self._maybe_convert_value_to_local()

out = get_start_end_field(np.array([val], dtype=np.int64),
field, freqstr, month_kw, self._creso)
field, freq_name, month_kw, self._creso)
return out[0]

@property
Expand Down

0 comments on commit 6bbba80

Please sign in to comment.