@@ -621,7 +621,7 @@ def generate_control_card4():
621
621
dcc .Dropdown (
622
622
id = 'year-1' ,
623
623
value = 'All Federal Fiscal Years' ,
624
- placeholder = 'Select a beginning federal fiscal year' ,
624
+ placeholder = 'Select a beginning year' ,
625
625
options = [{"label" : i , "value" : i } for i in ['All Federal Fiscal Years' , '2010' , '2011' , '2012' , '2013' , '2014' , '2015' , '2016' , '2017' , '2018' , '2019' , '2020' , '2021' ]],
626
626
multi = False ,
627
627
style = {
@@ -1822,10 +1822,10 @@ def update_cost_report_plot1(n_clicks, df, var1, var2, focal_h):
1822
1822
1823
1823
sub_df = df [df [x ] == hospital ]
1824
1824
1825
- sub_df .sort_values (by = ["('Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ')" ],
1825
+ sub_df .sort_values (by = ["('Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ')" ],
1826
1826
ascending = True , inplace = True )
1827
1827
1828
- dates = sub_df ["('Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ')" ]
1828
+ dates = sub_df ["('Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ')" ]
1829
1829
1830
1830
str_ = var1 + "', '" + var2 + "')"
1831
1831
column = [col for col in sub_df .columns if col .endswith (str_ )]
@@ -1894,7 +1894,7 @@ def update_cost_report_plot1(n_clicks, df, var1, var2, focal_h):
1894
1894
transition = {'duration' : 500 },
1895
1895
xaxis = dict (
1896
1896
title = dict (
1897
- text = "<b>Beginning Federal Fiscal Year</b>" ,
1897
+ text = "<b>Cost Report Period, Start Year</b>" ,
1898
1898
font = dict (
1899
1899
family = '"Open Sans", "HelveticaNeue", "Helvetica Neue",'
1900
1900
" Helvetica, Arial, sans-serif" ,
@@ -1992,7 +1992,7 @@ def update_cost_report_plot2(n_clicks, xvar1, xvar2, yvar1, yvar2, xscale, yscal
1992
1992
if yr1 == 'All Federal Fiscal Years' :
1993
1993
pass
1994
1994
else :
1995
- df = df [df ["('Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ')" ] == int (yr1 )]
1995
+ df = df [df ["('Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ')" ] == int (yr1 )]
1996
1996
1997
1997
fig_data = []
1998
1998
@@ -2043,7 +2043,7 @@ def update_cost_report_plot2(n_clicks, xvar1, xvar2, yvar1, yvar2, xscale, yscal
2043
2043
column2 = column2 [0 ]
2044
2044
y = tdf [column2 ].tolist ()
2045
2045
2046
- dates = tdf ["('Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ')" ]
2046
+ dates = tdf ["('Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ')" ]
2047
2047
2048
2048
names = tdf ["('Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num')" ]
2049
2049
@@ -2181,7 +2181,7 @@ def update_cost_report_plot2(n_clicks, xvar1, xvar2, yvar1, yvar2, xscale, yscal
2181
2181
column1 = [col for col in df .columns if col .endswith (str_1 )]
2182
2182
column2 = [col for col in df .columns if col .endswith (str_2 )]
2183
2183
2184
- dates = df ["('Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ')" ].tolist ()
2184
+ dates = df ["('Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ')" ].tolist ()
2185
2185
2186
2186
column1 = column1 [0 ]
2187
2187
x = df [column1 ].tolist ()
@@ -2702,7 +2702,7 @@ def update_cost_report_plot3(n_clicks, df, numer1, numer2, denom1, denom2, focal
2702
2702
name_var = "('Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num')"
2703
2703
tdf = df [df [name_var ] == hospital ]
2704
2704
2705
- date_var = "('Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ')"
2705
+ date_var = "('Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ')"
2706
2706
tdf .sort_values (by = date_var , inplace = True , ascending = True )
2707
2707
2708
2708
column1 = [col for col in tdf .columns if col .endswith (numer )]
@@ -2714,7 +2714,7 @@ def update_cost_report_plot3(n_clicks, df, numer1, numer2, denom1, denom2, focal
2714
2714
tdf = tdf .filter (items = ['y' , date_var , name_var ], axis = 1 )
2715
2715
tdf .dropna (how = 'any' , inplace = True )
2716
2716
2717
- dates = tdf ["('Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ', 'Beginning FFY ')" ]
2717
+ dates = tdf ["('Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ', 'Report_Period_Begin_Yr ')" ]
2718
2718
names = tdf ["('Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num')" ]
2719
2719
y = tdf ['y' ]
2720
2720
@@ -2749,7 +2749,7 @@ def update_cost_report_plot3(n_clicks, df, numer1, numer2, denom1, denom2, focal
2749
2749
transition = {'duration' : 500 },
2750
2750
xaxis = dict (
2751
2751
title = dict (
2752
- text = "<b>Beginning Federal Fiscal Year</b>" ,
2752
+ text = "<b>Cost Report Period, Start Year</b>" ,
2753
2753
font = dict (
2754
2754
family = '"Open Sans", "HelveticaNeue", "Helvetica Neue",'
2755
2755
" Helvetica, Arial, sans-serif" ,
0 commit comments