You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is a blank obs_seq instance necessary to fill up with obs sequence, or just join existing obs sequence instances?
just dataframes:
class obs_sequence:
...
def join_obs_sequences(self, obs_sequences):
"""Join multiple obs_sequence instances.
Args:
obs_sequences (list): List of obs_sequence instances.
Returns:
pandas.DataFrame: Joined DataFrame of all obs_sequences.
"""
return pd.concat([obs.df for obs in obs_sequences])
class obs_sequence:
...
@classmethod
def join(cls, instances):
"""Join multiple obs_sequence instances.
Args:
obs_sequences (list): List of obs_sequence instances.
combined = cls(file=None)
combine all info for i in instances
Returns:
combined
"""
The text was updated successfully, but these errors were encountered:
Question:
just dataframes:
vs join objects:
join obs sequence objects
The text was updated successfully, but these errors were encountered: