Question: ifr = ifr.orderBy ( IFR , ascending = False ) ifr _ top = ifr.limit ( 1 0 ) . select (

ifr = ifr.orderBy("IFR", ascending=False)
ifr_top = ifr.limit(10).select("State", "IFR").toPandas()
print("Top 10 States with Highest IFR:")
print(ifr_top)
spark.stop() i have calculated IFR for Top 10 states with Highest IFR now i need to calculate and generate a Monthly
report (just a print prompt will do) of the top 10 states having the highest Infection Fatality
Ratio (IFR) column name are dates from 1-22-20 to 3-9-23

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 Databases Questions!