I have this dataset, which comes from an excel report:
when I use the following code:
import pandas as pd
df = pd.read_excel(r'C:\Users\Charles\Documents\CLS\CLS Python\Dashboard.xlsx')
profit = df['Gross Margin']
sales = df['Total Billing Rate']
df['Net_%'] = profit / sales
it results in:
TypeError: unsupported operand type(s) for /: 'str' and 'int'
I have tried googling and using int and float but cannot get the code to even begin running. What am I doing wrong?