import pandas as pd
df=pd.read_csv("C:/Users/Admin/Desktop/10lakhhhhh.csv")
writer = pd.ExcelWriter('C:/Users/Admin/Desktop/df/media/pandasEx.xlsx',engine ='xlsxwriter')
df.to_excel(writer, sheet_name ='10lakhhhhh')
writer.save()
答案 0 :(得分:0)
有一个名为modin
的新模块。它可以按以下方式用于快速读取海量数据:
安装:
pip install modin
代码:
import modin.pandas as pd
df = pd.read_csv('C:/Users/Admin/Desktop/10lakhhhhh.csv')