Update preopen_html.py
Browse files- preopen_html.py +1 -1
preopen_html.py
CHANGED
|
@@ -74,7 +74,7 @@ def build_preopen_html(key="NIFTY"):
|
|
| 74 |
cons_html = df_to_html_color(const_df) if not const_df.empty else "<i>No pre-open constituents</i>"
|
| 75 |
|
| 76 |
# ================= Metric tables (restricted to selected columns) =================
|
| 77 |
-
metric_cols_allowed = ["pChange", "totalTurnover", "marketCap", "
|
| 78 |
metric_cols = [c for c in metric_cols_allowed if c in const_df.columns and pd.api.types.is_numeric_dtype(const_df[c])] if not const_df.empty else []
|
| 79 |
|
| 80 |
metric_tables = ""
|
|
|
|
| 74 |
cons_html = df_to_html_color(const_df) if not const_df.empty else "<i>No pre-open constituents</i>"
|
| 75 |
|
| 76 |
# ================= Metric tables (restricted to selected columns) =================
|
| 77 |
+
metric_cols_allowed = ["pChange", "totalTurnover", "marketCap", "totalTradedVolume"]
|
| 78 |
metric_cols = [c for c in metric_cols_allowed if c in const_df.columns and pd.api.types.is_numeric_dtype(const_df[c])] if not const_df.empty else []
|
| 79 |
|
| 80 |
metric_tables = ""
|