2886. Change Data Type

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 2886

import pandas as pd


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