In ArcGIS Online, I would like to create a CSV from a data frame in ArcGIS API for Python using .to_csv, however I don't know where to access the result. For example, the code below should write the file "output.csv" somewhere. It doesn't create an error, but I cannot see it listed in AGOL. I've also tried my folder names created in AGOL, but don't see the CSV listed.
import pandas as pd
df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
df.to_csv('output.csv', index=False)