Cast pandas column to int

    0

    0

    Javier Pacheco

    This line creates a dataframe with column int.

    import pandas as pd
    
    df = df.astype({'column':'int'})
    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.