Skip to content

2877. Create a DataFrame from List 👍

1
2
3
4
5
import pandas as pd


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