3.2. Dataframe Inspection#
import pandas as pd
import numpy as np
Description |
Syntax |
---|---|
Check number of rows and columns |
df.shape |
Check number of elements |
df.size |
Check number of columns |
len(df.columns) |
Check list of all the columns |
df.columns |
Check datatype of all the columns |
df.dtypes |
Check datatype of one column |
df.dtype |