Question: Create a variable named df _ bank _ row _ count and assign the number of rows ( aka number of observations ) in the
Create a variable named dfbankrowcount and assign the number of rows aka number of observations in the bank data
df
bank Create a variable named
df
bankcolumncount and assign the number of columns aka number of variables in the bank data
df
bank Create a variable named dfmoviesrowcount and assign the number of rows aka number of observations in the movies data
df
movies Create a variable named dfmoviescolumncount and assign the number of columns aka number of variables in the movies data dfmovies Note: Your code goes in the below cell. Do not hard code it do not look up the excel file and count the number of rows and observations manually Use pandas operationsfunctionsYour code goes in this cell."# Run this cell. It will display the results of your code for two cases # Do not change this cell. print dfbankrowcount print dfbankcolumncount print dfmoviesrowcount print df moviescolumn count Test case for question # Run this cell. # This is a test case # It will tell you whether or not you pass the question # Do not change this cell. try: if
df
bankrowcount
&df
bankcolumncount
&df
moviesrowcount
&df
moviescolumncount
: scorequestion 'pass' else: scorequestion 'fail' except: scorequestion 'fail' score
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
