Skip to content

Commit 7cdc2b0

Browse files
committed
Update creditcard.py to rename series returned by value_counts()
1 parent 2dbe341 commit 7cdc2b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ads/feature_engineering/feature_type/creditcard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def feature_stat(x: pd.Series):
198198
df_stat = _count_unique_missing(x)
199199
card_types = x.apply(assign_issuer)
200200
value_counts = card_types.value_counts()
201+
value_counts.rename("creditcard", inplace=True)
201202
value_counts.index = [
202203
"count_" + cardtype for cardtype in list(value_counts.index)
203204
]

0 commit comments

Comments
 (0)