CBSE Class 12 Informatics Practices
Question 133 of 167
Python Pandas — I — Question 23
Back to all questions name age weight height siblings gender
0 Jiya 10 75 4.5 1 M
1 Tim 15 123 5.0 1 M
2 Rohan 20 239 6.1 1 M
The given code creates a dictionary my_di. Then, a DataFrame df is created using the pd.DataFrame() constructor and passing the my_di dictionary. The print() function is used to display the DataFrame.