HabitatFeaturePanel
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- class HabitatFeaturePanel(frame: DataFrame, subject_column: str = 'subject', habitat_column: str = 'habitat', feature_column: str = 'feature', value_column: str = 'value')[source]
Bases:
objectLong table of one value per subject x habitat x feature.
- frame
Columns named by the four
*_columnfields.- Type:
pandas.core.frame.DataFrame
- value_column
Numeric measurement column. Absent habitats are omitted (not filled with zero).
- Type:
- for_subject(subject_id: str) HabitatFeaturePanel[source]
Return a panel containing only
subject_id.- Parameters:
subject_id – Subject identifier to keep.
- Returns:
A new panel with one subject.
- Raises:
HABITAPIError – If the subject is absent.