Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -175,6 +175,8 @@ def save_openweather_historical_to_csv(openweather_historical_readings):
|
|
| 175 |
|
| 176 |
# Create a DataFrame from the readings
|
| 177 |
df = pd.DataFrame([openweather_historical_readings]) # Assuming a single row of data
|
|
|
|
|
|
|
| 178 |
|
| 179 |
# Ensure the DataFrame is not empty
|
| 180 |
if df.empty:
|
|
|
|
| 175 |
|
| 176 |
# Create a DataFrame from the readings
|
| 177 |
df = pd.DataFrame([openweather_historical_readings]) # Assuming a single row of data
|
| 178 |
+
print("DataFrame shape:", df.shape)
|
| 179 |
+
print("DataFrame columns:", df.columns)
|
| 180 |
|
| 181 |
# Ensure the DataFrame is not empty
|
| 182 |
if df.empty:
|