@@ -307,6 +307,7 @@ cdef inline int64_t transform_via_day(int64_t ordinal,
307307 result = second_func(result, af_info)
308308 return result
309309
310+
310311# --------------------------------------------------------------------
311312# Conversion _to_ Daily Freq
312313
@@ -976,7 +977,6 @@ cdef inline int month_to_quarter(int month):
976977# ----------------------------------------------------------------------
977978# Period logic
978979
979-
980980def dt64arr_to_periodarr (int64_t[:] dtarr , int freq , tz = None ):
981981 """
982982 Convert array of datetime64 values (passed in as 'i8' dtype) to a set of
@@ -1227,6 +1227,7 @@ cdef list extra_fmts = [(b"%q", b"^`AB`^"),
12271227cdef list str_extra_fmts = [" ^`AB`^" , " ^`CD`^" , " ^`EF`^" ,
12281228 " ^`GH`^" , " ^`IJ`^" , " ^`KL`^" ]
12291229
1230+
12301231cdef object _period_strftime(int64_t value, int freq, object fmt):
12311232 cdef:
12321233 Py_ssize_t i
@@ -1236,7 +1237,6 @@ cdef object _period_strftime(int64_t value, int freq, object fmt):
12361237 list found_pat = [False ] * len (extra_fmts)
12371238 int year, quarter
12381239
1239-
12401240 if isinstance (fmt, unicode ):
12411241 fmt = fmt.encode(' utf-8' )
12421242
0 commit comments