livecellx.core.SingleCellStatic.get_feature_pd_series
- SingleCellStatic.get_feature_pd_series()[source]
Generate a pandas Series containing features for a single cell.
This method iterates over the feature dictionary (self.feature_dict) and converts each feature into a pandas Series. The features can be of type list, numpy array, or pandas Series. Each feature is prefixed with its name and concatenated into a single pandas Series. Additionally, the time frame (self.timeframe) and single cell ID (self.id) are added to the resulting Series.
- Returns:
- pd.Series: A pandas Series containing all the features with their respective prefixes,
along with the time frame and single cell ID.
- Raises:
TypeError: If a feature is not of type list, numpy array, or pandas Series.