I can't seem to figure out how to display all columns in this .data file. I can only display two separate columns when I'd like to display all ten.
I've attached an image with what I've tried. I've been looking over for the documentation, but nothing seems to fit.
I've also attached an image with how I'd like the data to display in jupyter notebook.
How I'd like to display the data:
How I'd like to display the data:
18.0 8 307.0 130.0 3504. 12.0 70 1 "chevrolet mal"
15.0 8 350.0 165.0 3693. 11.5 70 1 "buick skylark"
18.0 8 318.0 150.0 3436. 11.0 70 1 "plymouth sat"
16.0 8 304.0 150.0 3433. 12.0 70 1 "amc rebel sst"
17.0 8 302.0 140.0 3449. 10.5 70 1 "ford torino"
15.0 8 429.0 198.0 4341. 10.0 70 1 "ford galaxie"
14.0 8 454.0 220.0 4354. 9.0 70 1 "chevrolet"
14.0 8 440.0 215.0 4312. 8.5 70 1 "plymouth fury"
14.0 8 455.0 225.0 4425. 10.0 70 1 "pontiac"
What I've tried so far:
import pandas as pd
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns', None)
pd.read_table('auto-mpg.data', header=None)
0 1
0 18.0 8 307.0 130.0 3504. 12... chevrolet chevelle malibu
1 15.0 8 350.0 165.0 3693. 11... buick skylark 320
2 18.0 8 318.0 150.0 3436. 11... plymouth satellite
3 16.0 8 304.0 150.0 3433. 12... amc rebel sst
4 17.0 8 302.0 140.0 3449. 10... ford torino
5 15.0 8 429.0 198.0 4341. 10... ford galaxie 500
6 14.0 8 454.0 220.0 4354. 9... chevrolet impala
7 14.0 8 440.0 215.0 4312. 8... plymouth fury iii
8 14.0 8 455.0 225.0 4425. 10... pontiac catalina
9 15.0 8 390.0 190.0 3850. 8... amc ambassador dpl
10 15.0 8 383.0 170.0 3563. 10... dodge challenger se
The table is truncated as pandas attempts to display the data in two columns.