From f07ab807e5eb393121197307de5718db429b71a8 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 2 Oct 2018 06:22:27 -0500 Subject: [PATCH] str, bytes --- pandas/core/dtypes/dtypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index dbe0dda022637..0403b3fb28847 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -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):