Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,7 +198,7 @@ def fill_missing_quarters(df, lob, acc, transaction):
|
|
| 198 |
df[col] = df[col].apply(lambda x: str(int(x)) if isinstance(x, (int, float)) and str(x) != 'nan' else str(x))
|
| 199 |
quarters = []
|
| 200 |
start_year = 2017
|
| 201 |
-
end_year = min(int(df[acc].max()[:4]),
|
| 202 |
for year in range(start_year, end_year+1):
|
| 203 |
for quarter in ['03', '06', '09', '12']:
|
| 204 |
quarters.append(str(year) + quarter)
|
|
|
|
| 198 |
df[col] = df[col].apply(lambda x: str(int(x)) if isinstance(x, (int, float)) and str(x) != 'nan' else str(x))
|
| 199 |
quarters = []
|
| 200 |
start_year = 2017
|
| 201 |
+
end_year = min(int(df[acc].max()[:4]), 2025)
|
| 202 |
for year in range(start_year, end_year+1):
|
| 203 |
for quarter in ['03', '06', '09', '12']:
|
| 204 |
quarters.append(str(year) + quarter)
|