Skip to content

Commit 36a92e9

Browse files
authored
ListofListstoDataframe.py
1 parent 3df8d22 commit 36a92e9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ListofListstoDataframe.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import pandas as pd
2+
data = [['DSA', 'Python', 80],
3+
['DS', 'MATLAB', 70],
4+
['OSDC', 'C', 94],
5+
['MAPD', 'JAVA', 78]]
6+
df = pd.DataFrame(data, columns=['Subject', 'Language', 'Marks'])
7+
print(df)

0 commit comments

Comments
 (0)