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 3 years, 3 months ago
- 3 answers
Tec Om 3 years, 3 months ago
Tec Om 3 years, 3 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 Parth Chaudhary 9 months ago
- 2 answers
Posted by Martina Sangchoju 9 months, 3 weeks ago
- 2 answers
Posted by Yashika Kakkar 6 months, 1 week ago
- 1 answers
Posted by Arifa Meharun 3 months, 4 weeks ago
- 0 answers
Posted by Honey Hanisha 9 months, 3 weeks ago
- 0 answers
Posted by Akib Chowdhury 5 months, 4 weeks ago
- 1 answers
Posted by Prapti Dubey 5 months, 4 weeks ago
- 0 answers
Posted by Siya Vishwakarma 7 months, 1 week ago
- 1 answers
Posted by Simran Batra 5 months ago
- 0 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
Tec Om 3 years, 3 months ago
0Thank You