chriskok3 commited on
Commit
6939d6e
1 Parent(s): 93b82e4

Update app3.py

Browse files
Files changed (1) hide show
  1. app3.py +1 -1
app3.py CHANGED
@@ -46,7 +46,7 @@ def create_plot(subgroup='All polls', date_range=[df2['timestamp'].min(), df2['t
46
  ]
47
 
48
  # Apply any required transformations to the data in pandas
49
- smooth_data = approval_df2.sort_values('timestamp').rolling(window=moving_av_window, on='timestamp').mean().shift(-moving_av_window+1)
50
 
51
  chart_data = approval_df2.sort_values('timestamp').copy()
52
 
 
46
  ]
47
 
48
  # Apply any required transformations to the data in pandas
49
+ smooth_data = approval_df2.sort_values('timestamp').rolling(window=moving_av_window, on='timestamp', center=True).mean().shift(-moving_av_window+1)
50
 
51
  chart_data = approval_df2.sort_values('timestamp').copy()
52