beta3 commited on
Commit
12c6b8b
verified
1 Parent(s): d2e82f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -112,7 +112,9 @@ instrument_config = INSTRUMENTS[selected_instrument]
112
  df = load_data(instrument_config["config"], instrument_config["split"])
113
 
114
  if df is not None:
115
- # Load saved configuration if exists
 
 
116
  config_path = f"configs/{instrument_config['config']}_config.json"
117
  if os.path.exists(config_path):
118
  with open(config_path, 'r') as f:
@@ -120,7 +122,6 @@ if df is not None:
120
  else:
121
  config = None
122
 
123
- # Create dashboard with PyGWalker
124
  pyg_html = pyg.to_html(df, config=config, return_html=True)
125
  st.components.v1.html(pyg_html, height=960)
126
 
 
112
  df = load_data(instrument_config["config"], instrument_config["split"])
113
 
114
  if df is not None:
115
+ df["FECHA NEGOCIACION"] = pd.to_datetime(df["FECHA NEGOCIACION"], format="%Y-%m-%d")
116
+
117
+ # Cargar configuraci贸n guardada si existe
118
  config_path = f"configs/{instrument_config['config']}_config.json"
119
  if os.path.exists(config_path):
120
  with open(config_path, 'r') as f:
 
122
  else:
123
  config = None
124
 
 
125
  pyg_html = pyg.to_html(df, config=config, return_html=True)
126
  st.components.v1.html(pyg_html, height=960)
127