Skip to content

Pandas dataframe export - #64

Merged
lasch merged 4 commits into
mainfrom
pandas_df_export
Nov 26, 2025
Merged

lasch merged 4 commits into
mainfrom
pandas_df_export

Conversation

@lasch

@lasch lasch commented Nov 24, 2025

Copy link
Copy Markdown
Member

Introducing a new export format based on pandas dataframes.

Adding a new output format (-f pddf). When using from cmdline, the output is a text file with a table containing the exported events (only completeevents; ph="X"). When using as a library, using Acelyzer.get_output_data() returns a pandas dataframe object for subsequent processing.

Initial number of columns is maybe limited. A later edition may allow customization of the table content via this class member:

            self.data_map = {
                "ts": ("Timestamp", 0.0),
                "dur": ("Duration", 0.0),
                "cat": ("Category", "other"),
                "name": ("Event Name", "NoName"),
                "args.pt_active": ("PT_Active", 0.0)}

Readme has been updated to include description and example of the feature.

Signed-off-by: Lars Schneidenbach <schneidenbach@us.ibm.com>
Signed-off-by: Lars Schneidenbach <schneidenbach@us.ibm.com>
Signed-off-by: Lars Schneidenbach <schneidenbach@us.ibm.com>
Comment thread src/aiu_trace_analyzer/core/acelyzer.py Outdated
Comment thread README.md Outdated
Signed-off-by: Lars Schneidenbach <schneidenbach@us.ibm.com>
@lasch
lasch merged commit b0399b4 into main Nov 26, 2025
2 checks passed
@lasch
lasch deleted the pandas_df_export branch November 26, 2025 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants