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)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter