当前位置:优学网  >  在线题库

Dataframe的输出显示“…..”在输出中

发表时间:2022-07-22 00:16:21 阅读:82
import pandas as pd
import numpy as np
a=['cosmetics','online','5/22/2017',8985,793518.00,477943.95,315574.05]
b=['cereal','online','5/20/2017',5559,1780539.20,1013704.16,766835.04]
c=['personal care','offline','5/8/2017',4567,523807.57,363198.03,160609.54]
d=['personal care','online','3/11/2017',6992,246415.95,170860.05,75555.90]
e=['snacks','online','2/25/2017',7562,1117953.66,713942.88,404010.78]
f=['household','offline','2/8/2017',52284,5997054.98,4509793.96,1487261.02]
s=[a,b,c,d,e,f]
df1=pd.DataFrame(s,columns=['item type','channel','order date','order id','total revenue','total cost','total profit'])

对于此源代码,显示的输出是:在此处输入图像描述

如何消除并显示整个输出?

🎖️ 优质答案
相关问题