Commit c90aa22
committed
BUG: fixes 'string_types' encoding failure with unicode cols in py2
As part of warning check, object type of potential attributes was checked
for subtypes of pd.compat.str_types before being checked for overlap with
methods defined on ndframes. This causes decode errors in Python2 when
users attempt to add columns with unicode column names. Fix is to compare
against `str`.1 parent c9f954a commit c90aa22
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1906 | 1906 | | |
1907 | 1907 | | |
1908 | 1908 | | |
1909 | | - | |
1910 | | - | |
| 1909 | + | |
1911 | 1910 | | |
1912 | 1911 | | |
1913 | 1912 | | |
| |||
0 commit comments