plots.select_series
plots.select_series(df, features=None, acronym=None, id=None, mapping='Allen')Select data series based on features and brain region criteria.
This function filters a DataFrame to select specific features based on brain region criteria (acronym or ID) and returns the selected data series.
Args: df (pd.DataFrame): DataFrame containing the data to filter. features (list, optional): List of feature names to select. If None, uses all available voltage features. Defaults to None. acronym (str, optional): Brain region acronym to filter by. Mutually exclusive with id parameter. id (int, optional): Brain region ID to filter by. Mutually exclusive with acronym parameter. mapping (str, optional): Brain region mapping system to use. Defaults to “Allen”.
Returns: pd.DataFrame: Filtered DataFrame containing only the selected features for the specified brain region.
Note: Either acronym or id should be provided, but not both. If neither is provided, the function will return None.