在读取csv文件的前几行
In [14]: print(movies.head())
star_rating title ... duration actors_list
0 9.3 The Shawshank Redemption ... 142 [u'Tim Robbins', u'Morgan Freeman', u'Bob Gunt...
1 9.2 The Godfather ... 175 [u'Marlon Brando', u'Al Pacino', u'James Caan']
2 9.1 The Godfather: Part II ... 200 [u'Al Pacino', u'Robert De Niro', u'Robert Duv...
3 9.0 The Dark Knight ... 152 [u'Christian Bale', u'Heath Ledger', u'Aaron E...
4 8.9 Pulp Fiction ... 154 [u'John Travolta', u'Uma Thurman', u'Samuel L....
[5 rows x 6 columns]
Ipython会根据窗口的屏幕大小自动截断长度。
它不显示content_rating和体裁
In [15]: movies.columns
Out[15]:
Index(['star_rating', 'title', 'content_rating', 'genre', 'duration',
'actors_list'],
dtype='object')
如何配置它以任何屏幕尺寸显示所有列?