Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started