eshan6704 commited on
Commit
e51d100
·
verified ·
1 Parent(s): 2f1d239

Update index.py

Browse files
Files changed (1) hide show
  1. index.py +0 -8
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