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

No numeric types to aggregate - Big mart sales intro code error , I av blog for big mart sales below code , is getting an error

$
0
0

@Krishtetali wrote:

Hi , I av blog for big mart sales intro , this code is showing error - not supported between of instances of ‘float’ and 'str’
1)outlet_size_mode = data.pivot_table(values=‘Outlet_Size’, columns=‘Outlet_Type’,aggfunc=(lambda x:mode(x).mode[0]) )

I removed aggfunc then it is showing - No numeric types to aggregate
2) outlet_size_mode = data.pivot_table(values=‘Outlet_Size’, columns=‘Outlet_Type’)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles