Advertisements
Advertisements
Question
Write a Python code to create a DataFrame with appropriate column headings from the list given below:
[[101,'Gurman',98], [102,'Rajveer',95], [103,'Samar' ,96], [104,'Yuvraj',88]]
Short Note
Solution
import pandas as pd
data = [[101,'Gurman',98], [102,'Rajveer',95], [103,'Samar' ,96], [104,'Yuvraj',88]]
df = pd.DataFrame(data, columns = ['Rno','Name', 'Marks'])
shaalaa.com
Introduction to Python Libraries
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Pandas is an open-source ______ Library.
We can analyze the data in pandas with:
In data science, which of the python library are more popular?
Which of the following import statement is not correct?
The name “Pandas” is derived from the term ______.
Python pandas was developed by ______.