Question: Python excersize: Create dataframe that is named as mydf using the Sample data: {'X':[78,85,96,80,86], 'Y':[84,94,89,83,86],'Z':[86,97,96,72,83]}. Print it. First calculate sum of the values for each
Python excersize: Create dataframe that is named as mydf using the Sample data: {'X':[78,85,96,80,86], 'Y':[84,94,89,83,86],'Z':[86,97,96,72,83]}. Print it. First calculate sum of the values for each column, then for the whole mydf. / Then Get values that are above 90 in column X in mydf. / Create a new column named J that contains sum of all values from the same row in mydf.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
