VN
Size: a a a
VN
АМ
VN
АМ
df.fillna(df.mode().iloc[0])
VN
VN
VN
К
axis=1
и inplace=True
drop также можно сделать с inplace=True
А вот map
, наверно, можно сделать только через pipe
. По сути, можно будет сделать одну функцию и в неё завернуть обе эти операцииlogs.set_axis([...], inplace=True, axis=1).drop([...], inplace=True).pipe(function)
К
axis=1
и inplace=True
drop также можно сделать с inplace=True
А вот map
, наверно, можно сделать только через pipe
. По сути, можно будет сделать одну функцию и в неё завернуть обе эти операцииlogs.set_axis([...], inplace=True, axis=1).drop([...], inplace=True).pipe(function)
АМ
АМ
logs.set_axis(['ip', 'drop1', 'date','url', 'status', 'drop2', 'referrer', 'userAgent', 'drop3', 'drop4','drop5', 'domain'], inplace=False, axis=1).drop(['drop1', 'drop2', 'drop3', 'drop4','drop5'], axis = 1)
АМ
АМ
АМ
К
ЗТ
ЗТ
АМ