since .applymap() doesn't exist in Series, but in DataFrame, I'd like to keep my df['col'] as DataFrame.
I know that I could use .map() or .apply() [here a reference on topic]: Pandas: change data type of columns
But suppose I want to keep same methods name for code coherence... is there a way to force df['col'] to DataFrame ? AFAISI you could do :
pd.DataFrame(df['col']).applymap(isnan)
but it 2x slower than
df['col'].map(isnan)
that itself is FAR slower than
df['col'].apply(isnan)
is there no solution better than switching between .applymap and .apply() ?