dylan-plummer commited on
Commit
27e0d45
·
1 Parent(s): eec4d7a

reverse rank

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,7 +116,7 @@ def full_report():
116
  title='Average Jumps per Daily Session',
117
  template="plotly_dark")
118
 
119
- country_df['rank'] = country_df['jumps'].rank(ascending=False)
120
  total_map = px.choropleth(country_df, locations="iso",
121
  color="rank",
122
  hover_name="country", # column to add to hover information
@@ -131,7 +131,7 @@ def full_report():
131
  county_df['county'] = county_df['city'].map(city_county_map)
132
  county_df['count_name'] = county_df['city'].map(city_county_name_map)
133
  county_df = county_df.groupby(['county', 'count_name']).sum().reset_index()
134
- county_df['rank'] = county_df['jumps'].rank(ascending=False)
135
  county_map = px.choropleth(county_df, geojson=counties, locations='county', color='rank',
136
  color_continuous_scale="YlOrRd",
137
  scope="usa",
 
116
  title='Average Jumps per Daily Session',
117
  template="plotly_dark")
118
 
119
+ country_df['rank'] = country_df['jumps'].rank(ascending=True)
120
  total_map = px.choropleth(country_df, locations="iso",
121
  color="rank",
122
  hover_name="country", # column to add to hover information
 
131
  county_df['county'] = county_df['city'].map(city_county_map)
132
  county_df['count_name'] = county_df['city'].map(city_county_name_map)
133
  county_df = county_df.groupby(['county', 'count_name']).sum().reset_index()
134
+ county_df['rank'] = county_df['jumps'].rank(ascending=True)
135
  county_map = px.choropleth(county_df, geojson=counties, locations='county', color='rank',
136
  color_continuous_scale="YlOrRd",
137
  scope="usa",