DataFrame Information

    0

    0

    Wyx Smrf

    eda

    Some of the ways on how to view data information in pandas.

    Library: Pandas

    Filename pattern: .ipynb, .py

    import pandas as pd
    
    # View the top rows to the dataset
    df.head()
    
    # View the last rows to the dataset
    df.tail()
    
    # View the number and label of columns, as well the non-null count and data type
    df.info()
    
    # View descriptive statistics about the data
    df.describe()
    
    # View the counts of each element in a column
    df['column_name'].value_counts()
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.