src/estimagic/dashboard/dashboard_app.py
def _create_id_column(df):
    """Create a column that gives the position for plotted parameters and is None else.

    Args:
        df (pd.DataFrame): DataFrame with "group" column.

    Returns:
        ids (pd.Series): integer position in the DataFrame unless the group was
            None, False, np.nan or an empty string.

    """
    ids = pd.Series(range(len(df)), dtype=object, index=df.index)
    ids[df["group"].isin([None, False, np.nan, ""])] = None
    return ids.astype(str)
Create a column that gives the position for plotted parameters and is None else.

    Args:
        df (pd.DataFrame): DataFrame with "group" column.

    Returns:
        ids (pd.Series): integer position in the DataFrame unless the group was
            None, False, np.nan or an empty string.

    
Create a column that gives the position for plotted parameters and is None else.
Create a column that gives the position for plotted parameters and is None else .
def _create_id_column(df):
    ids = pd.Series(range(len(df)), dtype=object, index=df.index)
    ids[df["group"].isin([None, False, np.nan, ""])] = None
    return ids.astype(str)
def _create_id_column ( df ) : ids = pd . Series ( range ( len ( df ) ) , dtype = object , index = df . index ) ids [ df [ "group" ] . isin ( [ None , False , np . nan , "" ] ) ] = None return ids . astype ( str )
Create a column that gives the position for plotted parameters and is None else.
Create a column that gives the position for plotted parameters and is None else .
"""Create a column that gives the position for plotted parameters and is None else.

    Args:
        df (pd.DataFrame): DataFrame with "group" column.

    Returns:
        ids (pd.Series): integer position in the DataFrame unless the group was
            None, False, np.nan or an empty string.

    """
ids (pd.Series): integer position in the DataFrame unless the group was
None, False, np.nan or an empty string.
ids ( pd . Series ) : integer position in the DataFrame unless the group was None False np . nan or an empty string .
df
DataFrame with "group" column.
DataFrame with " group " column .