code: def _get_all_risk_analysis(risk_df: pd.DataFrame) -> pd.DataFrame:
      """risk_df to standard
  
      :param risk_df: risk data
      :return:
      """
      if risk_df is None:
          return pd.DataFrame()
      risk_df = risk_df.unstack()
      risk_df.columns = risk_df.columns.droplevel(0)
      return risk_df.drop("mean", axis=1)
  
file_path: qlib/qlib/contrib/report/analysis_position/risk_analysis.py
imports: from typing import Iterable
  import pandas
  import plotly.graph_objs
  from ...evaluate import risk_analysis
  from ..graph import SubplotsGraph, ScatterGraph
label_desc: Use image node_id 2 for calling a global function with example usage: _get_all_risk_analysis(risk_df) and returns: risk_df, pd