create a csv file when using arrays

you can just do something like this after the data is generated

file = pd.DataFrame({'lists': d,'frequency':c})
file.to_csv('name')

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top