Skip to content

Data inspection

Check basic information

prints information about a DataFrame including the index dtype and columns, non-null values and memory usage.

df.info()

Describe the data

Descriptive statistics include those that summarize the central tendency, dispersion and shape of a dataset’s distribution, excluding NaN values.

df.describe()

check the dimensions of dataframe

df.shape

Check the column name of dataframe

df.column

Show data heads and tails

df.head()
df.tail()

Show all unique

df.column.unique()
print(
    tabulate(
        df,
        headers="keys",
        tablefmt="psql",
    )
)