[Tutor] Issue with Currency Columns
Nick Becker
nikbb124 at gmail.com
Wed Jun 9 19:03:03 EDT 2021
Good Evening,
I read an excel spreadsheet into python with columns similar to those on
the attached, plus many others. I am trying to isolate the company name
and sales columns in my data so I can work on them and do some
calculations. However, after I read the CSV file, I keep getting error
messages around the sales column.
I want to make a new dataframe with just these two columns, but when I
enter "df2 = original file['Company Name', 'Sales']", I get error
messages. I have converting the column of the source data to a number, and
am still getting an error. Any suggestions or pointers would be
appreciated.
I am just getting started with Python, so pardon my ignorance.
Best,
Nick
More information about the Tutor
mailing list