Skip to content

Commit 97274dd

Browse files
committed
updated files -KL
1 parent 4bfbb7c commit 97274dd

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.DS_Store

10 KB
Binary file not shown.

app.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ def generate_control_card4():
621621
dcc.Dropdown(
622622
id='year-1',
623623
value='All Federal Fiscal Years',
624-
placeholder='Select a beginning federal fiscal year',
624+
placeholder='Select a beginning year',
625625
options=[{"label": i, "value": i} for i in ['All Federal Fiscal Years', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021']],
626626
multi=False,
627627
style={
@@ -1822,10 +1822,10 @@ def update_cost_report_plot1(n_clicks, df, var1, var2, focal_h):
18221822

18231823
sub_df = df[df[x] == hospital]
18241824

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')"],
18261826
ascending=True, inplace=True)
18271827

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')"]
18291829

18301830
str_ = var1 + "', '" + var2 + "')"
18311831
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):
18941894
transition = {'duration': 500},
18951895
xaxis=dict(
18961896
title=dict(
1897-
text="<b>Beginning Federal Fiscal Year</b>",
1897+
text="<b>Cost Report Period, Start Year</b>",
18981898
font=dict(
18991899
family='"Open Sans", "HelveticaNeue", "Helvetica Neue",'
19001900
" Helvetica, Arial, sans-serif",
@@ -1992,7 +1992,7 @@ def update_cost_report_plot2(n_clicks, xvar1, xvar2, yvar1, yvar2, xscale, yscal
19921992
if yr1 == 'All Federal Fiscal Years':
19931993
pass
19941994
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)]
19961996

19971997
fig_data = []
19981998

@@ -2043,7 +2043,7 @@ def update_cost_report_plot2(n_clicks, xvar1, xvar2, yvar1, yvar2, xscale, yscal
20432043
column2 = column2[0]
20442044
y = tdf[column2].tolist()
20452045

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')"]
20472047

20482048
names = tdf["('Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num')"]
20492049

@@ -2181,7 +2181,7 @@ def update_cost_report_plot2(n_clicks, xvar1, xvar2, yvar1, yvar2, xscale, yscal
21812181
column1 = [col for col in df.columns if col.endswith(str_1)]
21822182
column2 = [col for col in df.columns if col.endswith(str_2)]
21832183

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()
21852185

21862186
column1 = column1[0]
21872187
x = df[column1].tolist()
@@ -2702,7 +2702,7 @@ def update_cost_report_plot3(n_clicks, df, numer1, numer2, denom1, denom2, focal
27022702
name_var = "('Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num')"
27032703
tdf = df[df[name_var] == hospital]
27042704

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')"
27062706
tdf.sort_values(by=date_var, inplace=True, ascending=True)
27072707

27082708
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
27142714
tdf = tdf.filter(items=['y', date_var, name_var], axis=1)
27152715
tdf.dropna(how='any', inplace=True)
27162716

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')"]
27182718
names = tdf["('Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num', 'Curated Name and Num')"]
27192719
y = tdf['y']
27202720

@@ -2749,7 +2749,7 @@ def update_cost_report_plot3(n_clicks, df, numer1, numer2, denom1, denom2, focal
27492749
transition = {'duration': 500},
27502750
xaxis=dict(
27512751
title=dict(
2752-
text="<b>Beginning Federal Fiscal Year</b>",
2752+
text="<b>Cost Report Period, Start Year</b>",
27532753
font=dict(
27542754
family='"Open Sans", "HelveticaNeue", "Helvetica Neue",'
27552755
" Helvetica, Arial, sans-serif",

dataframe_data/GenDat4App_p4.pkl

-2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)