2877. Create a DataFrame from List

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

Содержание

LeetCode problem 2877

import pandas as pd


def createDataframe(student_data: List[List[int]]) -> pd.DataFrame:
    return pd.DataFrame(student_data, columns=['student_id', 'age'])