Back to Browse

Five important basic Pandas DataFrame functions info(), head(), tail(), shape,size,ndim, columns

4.6K views
Apr 14, 2022
10:57

We will learn these file basic functions which are frequently used in handling Pandas dataframe. Info() gives all information about the dataframe. Head() returns the top or fist 5 rows of the dataframe, we can change the number of rows to return. Tail() returns the last or bottom 5 rows ( by default ) we can change the number of rows to return. Shape returns the tuple saying about number of rows or columns in the dataframe Size returns the total number of data, this is same as multiplication of rows with columsn Ndim returns the number of dimension Columns returns the name of the columns of the dataframe Create the sample student DataFrame by using data from here. https://www.plus2net.com/python/pandas-student.php #info() #head() #tail() #size #pandas #python #pandasShape #pandasSize #plus2net

Download

0 formats

No download links available.

Five important basic Pandas DataFrame functions info(), head(), tail(), shape,size,ndim, columns | NatokHD