Skip to content

Commit 0bbcf8f

Browse files
authored
deprecation fix
1 parent 9ea4aba commit 0bbcf8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

category_encoders/one_hot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def generate_mapping(self):
142142
new_columns = []
143143

144144
append_nan_to_index = False
145-
for cat_name, class_ in values.iteritems():
145+
for cat_name, class_ in values.items():
146146
if pd.isna(cat_name) and self.handle_missing == 'return_nan':
147147
# we don't want a mapping column if return_nan
148148
# but do add the index to the end

0 commit comments

Comments
 (0)