Write a code to create dataframe …

CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Rajeshwari K S 4 years, 2 months ago
- 3 answers
Tec Om 4 years, 2 months ago
Tec Om 4 years, 2 months ago
import pandas as pd
var=pd.read_csv("file name or address") #if it(your csv file) is in the same folder then you can give the name of the file with extension
print(var)
to create a dataframe from txt file you can use this code:
import pandas as pd
var=pd.read_table("file name or address")
print(var)
Related Questions
Posted by Martina Sangchoju 1 year, 8 months ago
- 2 answers
Posted by Arifa Meharun 1 year, 3 months ago
- 0 answers
Posted by Parth Chaudhary 1 year, 8 months ago
- 2 answers
Posted by Siya Vishwakarma 1 year, 6 months ago
- 1 answers
Posted by Prapti Dubey 1 year, 5 months ago
- 0 answers
Posted by Akib Chowdhury 1 year, 4 months ago
- 1 answers
Posted by Simran Batra 1 year, 4 months ago
- 0 answers
Posted by Yashika Kakkar 1 year, 5 months ago
- 1 answers

myCBSEguide
Trusted by 1 Crore+ Students

Test Generator
Create papers online. It's FREE.

CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
myCBSEguide
Tec Om 4 years, 2 months ago
0Thank You