import pandas as pd
sentences=['aaa','bbb','ccc']
labels = [1,2,3]
infos = zip(sentences , labels)
df_synthesize = pd.DataFrame(infos, columns = ['content','label'])
print(df_synthesize)
print(list(infos))
I use the infos
to initialize the dataframe, however, after the creation, the infos becomes null list.
print(list(infos))
[]
It is quite weird, why this happens?
pandas version : 1.1.5