@@ -766,7 +766,7 @@ def generate_page(n_intervals):
766
766
df_hm ["hour" ] = df_hm ["datetime" ].apply (lambda x : x .hour )
767
767
768
768
square_index = list (reversed (df_hm ["dow" ].unique ().tolist ()))
769
- hours_index = [2 , 5 , 8 , 11 , 14 , 17 , 20 , 23 ]
769
+ hours_index = [0 , 3 , 6 , 9 , 12 , 15 , 18 , 21 ]
770
770
771
771
df_square_statuses = pd .DataFrame ("no status" , columns = hours_index , index = square_index )
772
772
df_square_ints = pd .DataFrame (np .nan , columns = hours_index , index = square_index )
@@ -791,6 +791,8 @@ def generate_page(n_intervals):
791
791
#
792
792
# figh = go.Figure(data=heatmap)
793
793
794
+ print ("df_square_ints" )
795
+ print (df_square_ints )
794
796
795
797
796
798
figh = ff .create_annotated_heatmap (
@@ -873,7 +875,7 @@ def generate_page(n_intervals):
873
875
pd .set_option ('display.max_rows' , 500 )
874
876
pd .set_option ('display.max_columns' , 500 )
875
877
pd .set_option ('display.width' , 1000 )
876
- # app.run_server(debug=True, port=SERVER_PORT)
878
+ #app.run_server(debug=True, port=SERVER_PORT)
877
879
app .run_server (debug = False , host = "0.0.0.0" , port = SERVER_PORT )
878
880
879
881
0 commit comments