Arts-of-coding commited on
Commit
d0e2e1a
·
verified ·
1 Parent(s): 937393e

Update dash_plotly_QC_scRNA.py

Browse files
Files changed (1) hide show
  1. dash_plotly_QC_scRNA.py +5 -6
dash_plotly_QC_scRNA.py CHANGED
@@ -63,14 +63,13 @@ tab0_content = html.Div([
63
  ])
64
 
65
  @app.callback(
66
- Input(component_id='dpdn1', component_property='value')
67
- )
68
-
69
- def update_dataset(dataset_chosen): #batch_chosen,
70
  global df
71
  filepath = f"az://data10xflex/{dataset_chosen}.parquet"
72
- df = pl.read_parquet(filepath,storage_options=storage_options)
73
- return df
74
 
75
  min_value = df[col_features].min()
76
  max_value = df[col_features].max()
 
63
  ])
64
 
65
  @app.callback(
66
+ Input(component_id='dpdn1', component_property='value'),
67
+ Output('output-div', 'children'))
68
+ def update_dataset(dataset_chosen):
 
69
  global df
70
  filepath = f"az://data10xflex/{dataset_chosen}.parquet"
71
+ df = pl.read_parquet(filepath, storage_options=storage_options)
72
+ return html.Pre(df.to_string())
73
 
74
  min_value = df[col_features].min()
75
  max_value = df[col_features].max()