CBSE BOARD XII, asked by pratibha1314, 8 months ago

create a dataframe named fruit
given by dictionary with values of keys as a list.​

Attachments:

Answers

Answered by kramesh77
4

Answer:

This article represents commands that could be used to create data frames using existing data frames. Please feel free to comment/suggest if I failed to mention one or more important points. Following is a list of command summaries for creating data frames by extracting multiple columns from existing data frame based on the following criteria, a sample of which is provided later in this article:

Column indices

Column names

Subset command

Data.frame command

Explanation:

i don't know it can help you

Answered by ujjwal99355
0

Answer:

import pandas as pd

data={'Color':['Red','Green','Red','Green','Green'],'Quantity':[4,13,23,45,9],'Price':[120,110,125,150,70]}

fruits=pd.DataFrame(data,index=['Apple','Apple','Pear','Pear','Lime'])

print(fruits)

Similar questions