Check the first 5 lines of data.
Variable to which DataFrame is assigned .head ()
By specifying a number in parentheses, it is also possible to display data for the specified number of lines.
If variable .head (10)
to which DataFrame is assigned, the first 10 lines of data will be displayed.
shape Check the number of rows and columns of the read data.
Variable with DataFrame assigned .shape
If you want to extract only the number of rows, write ** shape [0] **, and if you want to extract only the number of columns, write ** shape [1] **.
Check the data type of each column of DataFrame.
Variable to which DataFrame is assigned.info ()
Recommended Posts