I have a pandas series which contains float, integer and alphanumerical elements. The float and integer elements are also of type string like below:-
sr = pd.Series(['80', '25.1', '08!shashi123', '2!shekhar45@!#', '6.23'])
I want to convert this series into just a numerical series like below and replace the alphanumerical elements with a NaN
like below:-
sr = pd.Series([80, 25.1, 'NaN', 'NaN', 6.23])