The code below doesn't work because AttributeError: 'Series' object has no attribute 'startswith'. How do I do get this code to work?
#Starts with account num and negative
negExpense = (df.Amount < float(0)) & \
(df.loc[df['Account'].startswith(5)])
print(negExpense)
debits.to_excel(writer, 'Negative Expense')