I have a pandas dataframe with a column where each value is a list of elements. A combination of string and nan values (Which is indicating as dtype: float). Here are the first two elements:
1 [nan, JavaScript, nan, nan, nan, nan, nan, nan...
2 [Java, nan, nan, nan, nan, nan, SQL, nan, nan,...
I am trying to remove the nan values from each list within the column, so that only the strings remain within each list.
Does anyone have any idea of how I could drop these float values while retaining the string values in an efficient manner?