-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
IO CSVread_csv, to_csvread_csv, to_csvNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations
Milestone
Description
I read in my dataframe with
pd.read_csv('df.csv')
And then I run the code:
df['a'] = pd.to_numeric(df['a'], errors='coerce')
but the column does not get converted. When I use errors = 'raise' it gives me the numbers that are not convertible but it should be dropping them with coerce.... This was working perfectly in Pandas 0.19 and i Updated to 0.20.3. Did the way to_numeric works change between the two versions?
Metadata
Metadata
Assignees
Labels
IO CSVread_csv, to_csvread_csv, to_csvNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations