I need help plotting some categorical and numerical Values in python. the code is given below: However, the data size is so huge (Big data) that I’m not even able to make meaningful plotting in python. Basically, I just want to take the top 5 or top 10 values in python and make a plot of that as given below:-
Tag: exploratory-data-analysis
Pandas: How to fill nan value for column with part of value in other columns
I Want the value in city column to be filled with first word of venue column I tried using df.city.fillna(value=df.venue.str.split()[0]) but it taking first row values to fill Thank you in advance Answer From your DataFrame : After the split() you used, we can use map to assign the first list element to the NaN values in the City column