No products in the cart.

Write a code to create dataframe …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write a code to create dataframe from CSV and TXT file. With example
  • 3 answers

Tec Om 3 years, 3 months ago

<a href="https://www.instagram.com/_tec_om/">tec_om</a>

Tec Om 3 years, 3 months ago

if you want a detailed example then write it here or dm me on instagram <link href="https://www.instagram.com/_tec_om/">tec_om</link>

Tec Om 3 years, 3 months ago

to create a dataframe from form a csv file you must follow the following code lines
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)
http://mycbseguide.com/examin8/

Related Questions

Founder of python
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App