Spaces:
Sleeping
Sleeping
Update index.py
Browse files
index.py
CHANGED
|
@@ -27,14 +27,6 @@ def fetch_index(max_rows=200):
|
|
| 27 |
if df.empty:
|
| 28 |
return html_card("Error", "No data found for NIFTY 50 (^NSEI).")
|
| 29 |
|
| 30 |
-
# Standardize column names
|
| 31 |
-
df.columns = ["Close", "High", "Low", "Open", "Volume"]
|
| 32 |
-
df.reset_index(inplace=True) # make Date a column
|
| 33 |
-
|
| 34 |
-
# Limit display rows
|
| 35 |
-
df_display = df
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
# ----------------------------------
|
| 40 |
# Convert to HTML
|
|
|
|
| 27 |
if df.empty:
|
| 28 |
return html_card("Error", "No data found for NIFTY 50 (^NSEI).")
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# ----------------------------------
|
| 32 |
# Convert to HTML
|