Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop values based on type pandas

df[df.columns[n]] = df[df.columns[n]].apply(pd.to_numeric, errors='coerce').fillna(0).astype(float).dropna()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drop #values #based #type #pandas
ADD COMMENT
Topic
Name
1+5 =