Skip to content

Commit 4130ca7

Browse files
committed
BLD: python 3 fixes
1 parent 7085b94 commit 4130ca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/src/datetime.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ def periodarr_to_dt64arr(ndarray[int64_t] periodarr, int base, int64_t mult):
11051105
return out
11061106

11071107
cpdef int64_t period_asfreq(int64_t period_ordinal, int base1, int64_t mult1,
1108-
int base2, int64_t mult2, object relation='E'):
1108+
int base2, int64_t mult2, object relation=b'E'):
11091109
"""
11101110
Convert period ordinal from one frequency to another, and if upsampling,
11111111
choose to use start ('S') or end ('E') of period.
@@ -1127,7 +1127,7 @@ cpdef int64_t period_asfreq(int64_t period_ordinal, int base1, int64_t mult1,
11271127
return retval
11281128

11291129
def period_asfreq_arr(ndarray[int64_t] arr, int base1, int64_t mult1, int base2,
1130-
int64_t mult2, object relation='E'):
1130+
int64_t mult2, object relation=b'E'):
11311131
"""
11321132
Convert int64-array of period ordinals from one frequency to another, and if
11331133
upsampling, choose to use start ('S') or end ('E') of period.

0 commit comments

Comments
 (0)