I get the following error when passing a pandas dataframe to scikitlearn algorithms:
invalid literal for float(): 2.,3
How do I find the row or column with the problem in order to fix or eliminate it? Is there something like df[df.isnull().any(axis=1)] for a specific value (in my case I guess 2.,3)?
2.,3as a cell value? Try to_numeric() or print df.dtypes to see what type of data pandas is inferring. It probably says 'object'.