2886. Change Data Type

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 2886

import pandas as pd


def changeDatatype(students: pd.DataFrame) -> pd.DataFrame:
    students['grade'] = students['grade'].astype(int)
    return students