[Django]-How to create a CSV file in python that can be saved in memory?

2👍

You can save the csv file in a pandas DataFrame. Like so:

import pandas as pd

df = pd.read_csv('url_to_csv')

Then the csv is read by the pandas library and you don’t have to save it to a drive.

Leave a comment