Huy Guys,
I have a column in pandas that is a list with all values from row. As a sample below.
print(df4['List'])
0 [8,9,10,25,14,25,14,17,19,30]
1 [nan,85,48,75,nan,96,32,14,15,21,28,17,nan]
2 [nan,85,48,75,nan,]
3 [1,nan]
4 [85,75,41,nan]
5 [nan,65,34]
How can i do to remove these 'nan' values from my lists?
I tryed some conventional methods of list in python however i don't get make it have the same result in pandas DataFrame.
As this one:
while True:
try:
df4['PNs NaNs Removed'] = df4['List'].delete([nan])
except ValueError:
break