SampleEvent
Bases: MermaidBase
The SampleEvent class is responsible for fetching summary information about sample events across various projects.
Source code in seasnake/summaries/sample_event.py
summary(limit_columns=True, flatten=True)
Get a summary of sample events data from MERMAID.
This method retrieves summary information about Sample Events and returns the result as
a pandas DataFrame. By default, it limits the columns included in the DataFrame and
flattens the protocols
(or sample methods) column. However, these behaviors can be
changed using the input parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
limit_columns |
bool
|
Whether to limit the columns included in the DataFrame. Defaults to True. |
True
|
flatten |
bool
|
Whether to flatten the 'protocols' column in the DataFrame. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
DataFrame
|
DataFrame |
Examples:
from seasnake import SampleEvent
sample_event = SampleEvent()
print(sample_event.summary())