We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 912ac5e commit 114b2c2Copy full SHA for 114b2c2
pandas/core/common.py
@@ -69,7 +69,7 @@ def consensus_name_attr(objs):
69
def clean_column_name_with_spaces(name):
70
"""Check if name contains any spaces, if it contains any spaces
71
the spaces will be removed and an underscore suffix is added."""
72
- if not isinstance(name, str) or " " not in name:
+ if not isinstance(name, compat.string_types) or " " not in name:
73
return name
74
return name.replace(" ", "_") + "_"
75
0 commit comments