Last active 1715845104

sujal's Avatar sujal revised this gist 1715845104. Go to revision

1 file changed, 14 insertions

q26.py(file created)

@@ -0,0 +1,14 @@
1 + # Using Pandas, create a dataframe, initialize it with the contents such as your enrollment Number and name and
2 + # display them.
3 +
4 + import numpy as np
5 + import pandas as pd
6 +
7 + class_list = pd.DataFrame(np.array([
8 + ["Name", "Enrollment Number"],
9 + ["Alice", 1],
10 + ["Bob", 2],
11 + ["Bob", 3]
12 + ]))
13 +
14 + print(class_list)
Newer Older