@@ -307,6 +307,7 @@ cdef inline int64_t transform_via_day(int64_t ordinal,
307
307
result = second_func(result, af_info)
308
308
return result
309
309
310
+
310
311
# --------------------------------------------------------------------
311
312
# Conversion _to_ Daily Freq
312
313
@@ -976,7 +977,6 @@ cdef inline int month_to_quarter(int month):
976
977
# ----------------------------------------------------------------------
977
978
# Period logic
978
979
979
-
980
980
def dt64arr_to_periodarr (int64_t[:] dtarr , int freq , tz = None ):
981
981
"""
982
982
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`^"),
1227
1227
cdef list str_extra_fmts = [" ^`AB`^" , " ^`CD`^" , " ^`EF`^" ,
1228
1228
" ^`GH`^" , " ^`IJ`^" , " ^`KL`^" ]
1229
1229
1230
+
1230
1231
cdef object _period_strftime(int64_t value, int freq, object fmt):
1231
1232
cdef:
1232
1233
Py_ssize_t i
@@ -1236,7 +1237,6 @@ cdef object _period_strftime(int64_t value, int freq, object fmt):
1236
1237
list found_pat = [False ] * len (extra_fmts)
1237
1238
int year, quarter
1238
1239
1239
-
1240
1240
if isinstance (fmt, unicode ):
1241
1241
fmt = fmt.encode(' utf-8' )
1242
1242
0 commit comments