Art*_*123 2 python dataframe pandas
我运行了一个python代码,并得到了dataframe输出,如下所示:
1 Department of Susta... (2) Community Services (2)
2 Department of Commu... (2) Community Services (2)
3 Sustainability Vict... (1) Community Services (1)
4 Southern Grampians ... (1) Community Services (1)
5 Productivity Commis... (1) Community Services (1)
6 Parliament of NSW (1) Community Services (1)
.. ... ...
30 Noosa Shire Council (2) Sport and Recreation (2)
31 State Library of Qu... (1) Sport and Recreation (1)
32 Emergency Services ... (1) Sport and Recreation (1)
33 Department of Susta... (1) Sport and Recreation (1)
Run Code Online (Sandbox Code Playgroud)
现在我没有黑白行7到29。如何获取所有行?
这只是显示问题,我更喜欢:
#temporaly display 999 rows
with pd.option_context('display.max_rows', 999):
print (df)
Run Code Online (Sandbox Code Playgroud)
退出with块时,选项值将自动恢复。