Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -268,7 +268,7 @@ def get_latest_data_sequence(sequence_length: int, latitude: float, longitude: f
|
|
| 268 |
print("Warning: df_processed.index is timezone-naive. Localizing to UTC.")
|
| 269 |
df_processed.index = df_processed.index.tz_localize('UTC')
|
| 270 |
|
| 271 |
-
df_recent_processed = df_processed[(df_processed.index >= window_start_time_ts) &
|
| 272 |
print(f"Filtered to recent processing window ({processing_window_hours}hrs). Shape: {df_recent_processed.shape}")
|
| 273 |
# print(f"df_recent_processed head:\n{df_recent_processed.head().to_string()}")
|
| 274 |
# print(f"df_recent_processed NaNs before dropna:\n{df_recent_processed.isna().sum().to_string()}")
|
|
|
|
| 268 |
print("Warning: df_processed.index is timezone-naive. Localizing to UTC.")
|
| 269 |
df_processed.index = df_processed.index.tz_localize('UTC')
|
| 270 |
|
| 271 |
+
df_recent_processed = df_processed[(df_processed.index >= window_start_time_ts) & (df_processed.index <= window_end_time_ts)].copy()
|
| 272 |
print(f"Filtered to recent processing window ({processing_window_hours}hrs). Shape: {df_recent_processed.shape}")
|
| 273 |
# print(f"df_recent_processed head:\n{df_recent_processed.head().to_string()}")
|
| 274 |
# print(f"df_recent_processed NaNs before dropna:\n{df_recent_processed.isna().sum().to_string()}")
|