Is it possible to get all columns of a dataframe into individual series.
For e.g. if I have the following dataframe:
account = pd.Series(["Petty cash", "Lucky Money", "RBC USD"])
amount = pd.Series([-2.59, 1111111, 66170.97])
mapping = pd.Series(["Debt", "Equity", "Cash"])
mapping2 = pd.Series(["Yes", "Yes", "No"])
data = pd.DataFrame({
"Account Description": account,
"Amount": amount,
"mapping": mapping,
"mapping2": mapping
})
Assuming the above dataframe was obtained from an excel file and not created from the code above, I want to get the following without typing line by line:
account = data['account']
amount = data['amount']
mapping = data['mapping']
mapping2 = data['mapping2']
Regards,