Guardar la lista en dataframe pandas
import pandas as pd
list_name = ['item_1', 'item_2', 'item_3',...]
df = pd.DataFrame (list_name, columns = ['column_name'])
Novid19
import pandas as pd
list_name = ['item_1', 'item_2', 'item_3',...]
df = pd.DataFrame (list_name, columns = ['column_name'])
"""
write/read your pandas.DataFrame as a pickle (.pkl) file
to keep the list data structure
"""
# write
df.to_pickle('path/to/filename.pkl')
# read
df.read_picke('path/to/filename.pkl')