When i run the code in jupyter notebook and got this error:
KeyError Traceback (most recent call last)
in ()
93 log_feature['log_feature'] = log_feature['log_feature'].map(lambda x: x[8:]).astype(int)
94
---> 95 log_feature.reset_index('count_of_log_feature_seen',inplace=True)
96 log_feature.rename(columns={'index':'count_of_log_feature_seen'},inplace=True)
97
KeyError: 'Level count_of_log_feature_seen must be same as name (None)'
Please advise.
When i run the code in jupyter notebook and got this error:
KeyError Traceback (most recent call last)
in ()
93 log_feature['log_feature'] = log_feature['log_feature'].map(lambda x: x[8:]).astype(int)
94
---> 95 log_feature.reset_index('count_of_log_feature_seen',inplace=True)
96 log_feature.rename(columns={'index':'count_of_log_feature_seen'},inplace=True)
97
KeyError: 'Level count_of_log_feature_seen must be same as name (None)'
Please advise.