Skip to content

Commit

Permalink
str, bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Oct 2, 2018
1 parent 8a8bdb0 commit f07ab80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/dtypes/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,11 +661,11 @@ def construct_from_string(cls, string):
raise TypeError("could not construct PeriodDtype")

def __unicode__(self):
return self.name
return compat.text_type(self.name)

@property
def name(self):
return u"period[{freq}]".format(freq=self.freq.freqstr)
return str("period[{freq}]".format(freq=self.freq.freqstr))

@property
def na_value(self):
Expand Down

0 comments on commit f07ab80

Please sign in to comment.