No products in the cart.

Write a program 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 program to create dataframe stock using the index values as 10,20,30,40and 50.
  • 5 answers

Tec Om 3 years, 7 months ago

if you have any query in my answer you can dm me on insta: _tec_om

Tec Om 3 years, 7 months ago

<pre> import pandas as pp dic1={"Name":["Omkar","Jankar","Shubankar","Chitrakar","Bekar"], "salary":[200000,10000,23000,32000,1200] } data1=pp.DataFrame(dic1,index=[10,20,30,40,50]) print(data1)</pre>

Hey Kriti 3 years, 7 months ago

Import pandas as pd Import numpy as np dict={"name":["amit","sumit","Ronit","Aryan"],"rollno. ":[1,2,3,4]} Stock=pd.dataframe(dict, index=[10,20,30,40]) Print(stock)

Arpit Malik 3 years, 7 months ago

@Kaviya .... Galt hai bhai? Index me jyada values dedi??

Kaviya Rajasekaran 3 years, 7 months ago

Dtf={'products':['pen','pencil','crayon'],'price':[100,50,200]) Stock=pd.Dataframe(Dtf,index=[10,20,30,40,50]) Print(stock)
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