I am handling huge data series which are consist of float values and Pandas.Series type.
I executed the following code in Python.
import pandas as pd
# Read the specific column from CSV file.
float_log_series = pd.read_csv('./data.csv', usecols=['float_log']).float_log
data_cut = pd.cut(float_log_series, 20)
However, I am getting the following error.
TypeError: '<=' not supported between instances of 'float' and 'str'
This error mentions that a data series could include str type data.
I would like to extract and remove this data.
How can I do that?