We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c382a19 commit 7e1fab9Copy full SHA for 7e1fab9
pandas/_libs/tslibs/period.pyx
@@ -1281,14 +1281,16 @@ cdef int pyear(int64_t ordinal, int freq):
1281
@cython.cdivision
1282
cdef int pqyear(int64_t ordinal, int freq):
1283
cdef:
1284
- int year, quarter
+ int year = 0
1285
+ int quarter = 0
1286
get_yq(ordinal, freq, &quarter, &year)
1287
return year
1288
1289
1290
cdef int pquarter(int64_t ordinal, int freq):
1291
1292
1293
1294
1295
return quarter
1296
0 commit comments