Skip to content

Commit be98d10

Browse files
committed
Update comment (thanks @JanSchulz for review)
1 parent d40b54e commit be98d10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

patsy/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,9 @@ def test_pandas_Categorical_from_codes():
598598

599599
# Needed to support pandas < 0.15
600600
def pandas_Categorical_categories(cat):
601-
# In 0.15+, a categorical Series has a .cat attribute which is a
602-
# Categorical object, and Categorical objects are what have .categories /
603-
# .codes attributes.
601+
# In 0.15+, a categorical Series has a .cat attribute which is similar to
602+
# a Categorical object, and Categorical objects are what have .categories
603+
# and .codes attributes.
604604
if hasattr(cat, "cat"):
605605
cat = cat.cat
606606
if hasattr(cat, "categories"):

0 commit comments

Comments
 (0)