File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2208,10 +2208,6 @@ cdef class _Period:
2208
2208
def now (cls , freq = None ):
2209
2209
return Period(datetime.now(), freq = freq)
2210
2210
2211
- # HACK IT UP AND YOU BETTER FIX IT SOON
2212
- def __str__ (self ):
2213
- return self .__unicode__ ()
2214
-
2215
2211
@property
2216
2212
def freqstr (self ):
2217
2213
return self .freq.freqstr
@@ -2221,9 +2217,9 @@ cdef class _Period:
2221
2217
formatted = period_format(self .ordinal, base)
2222
2218
return " Period('%s ', '%s ')" % (formatted, self .freqstr)
2223
2219
2224
- def __unicode__ (self ):
2220
+ def __str__ (self ):
2225
2221
"""
2226
- Return a unicode string representation for a particular DataFrame
2222
+ Return a string representation for a particular DataFrame
2227
2223
"""
2228
2224
base, mult = get_freq_code(self .freq)
2229
2225
formatted = period_format(self .ordinal, base)
You can’t perform that action at this time.
0 commit comments