Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docstrings API examples #648

Merged
merged 12 commits into from
Apr 10, 2024
Prev Previous commit
Next Next commit
Update sklego/preprocessing/dictmapper.py
  • Loading branch information
FBruzzesi authored Mar 29, 2024
commit d9667cecff4ccba62e5c3c11e2882f04e419782d
8 changes: 4 additions & 4 deletions sklego/preprocessing/dictmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class DictMapper(TransformerMixin, BaseEstimator):
})

mapper = {
"Amsterdam": 1_181_817,
"Leiden": 130_181,
"Utrecht": 367_984,
"Haarlem": 165_396,
"Amsterdam": 1_181_817,
"Leiden": 130_181,
"Utrecht": 367_984,
"Haarlem": 165_396,
}

ct = ColumnTransformer([("dictmapper", DictMapper(mapper, 0), ["city_pop"])])
Expand Down