Question: I have a dataframe called Data and I need t create new dataframefrom it. I already created an empty dataframe and named the columnsA,B,C,D,E,F,G. I

I have a dataframe called Data and I need t create new dataframefrom it. I already created an empty dataframe and named the columnsA,B,C,D,E,F,G. I also have variables called a,b,c,d,e,f,g thatshould go directly under their columns.

Example:

Column A should have values that are stores in variable a.

Column B should have values that are stores in variable b.

Please write a python 3 code that can help me achieve that.

This is what I have so far:

Columns = ['A','B,'C','D','E,'F','G']

df = pd.DataFrame(columns = Columns)

a=mean(Data)

b=std(Data)

c=Data.min()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!