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 9ea4aba commit 0bbcf8fCopy full SHA for 0bbcf8f
category_encoders/one_hot.py
@@ -142,7 +142,7 @@ def generate_mapping(self):
142
new_columns = []
143
144
append_nan_to_index = False
145
- for cat_name, class_ in values.iteritems():
+ for cat_name, class_ in values.items():
146
if pd.isna(cat_name) and self.handle_missing == 'return_nan':
147
# we don't want a mapping column if return_nan
148
# but do add the index to the end
0 commit comments