I am using juypter to analyze a large csv file.
Inside the file there are around 40,000 str values and 15 float values. I am trying to convert all the str values to numeric so i can analyze all the data.
However, I cannot due to the float values randomly inside the data. Is there a simple way to simply remove all these values?
I am relativley new to coding so please bear with me if this seems like a "dumb" quesiton.
import pandas as pd
df = pd.read_csv('stripperdata.csv')
for i in df['Pressure']:
if isinstance(i , str):
int(i)
if isinstance(i , float):
df.remove(i)
when I do this i am getting a error "Invalid literal for int() with base 10:"