Create dataframe with dictionary

PHOTO EMBED

Fri Sep 03 2021 06:44:51 GMT+0000 (UTC)

Saved by @ExplodeMilk #python

students = {
  "name": ["Jason", "Peter", "Mary", "Apple", "Banana", "Orange"],
  "age": [18, 20, 17, 20, 20, 23],
  "grade": ["C", "A", "B+", "B-", "B", "A"]
}

df_students = pd.DataFrame(students)
print(df_students)
content_copyCOPY

https://cms.tecky.io/mod/page/view.php?id