I have the following code:
import pandas as pd df1 = pd.DataFrame({\'Counterparty\':[\'Bank\',\'Bank\',\'GSE\',\'PSE\'], \'Sub Cat\':[\'Tier1\',\'Sma
Remove the double brackets around the 'Amount' and make them single brackets. You're telling it to only select one column.
'Amount'