Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Getting TypeError: '

$
0
0

@mukul98m wrote:

Experiment With data workshop

  • Missing Value Treatment

var_to_impute = [‘Workclass’,‘Occupation’,‘Native.Country’]

for var in var_to_impute:

Train[var].fillna(mode(Train[var]).mode[0], inplace=True)

TypeError: ‘<’ not supported between instances of ‘float’ and ‘str’

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles