Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log_to_feature: Export features on case level to pandas df #292

Closed
darjooling86 opened this issue Dec 6, 2021 · 5 comments
Closed

log_to_feature: Export features on case level to pandas df #292

darjooling86 opened this issue Dec 6, 2021 · 5 comments

Comments

@darjooling86
Copy link

Hi,

first of all thank you for the great work!

I would like to use pm4py to extract relevant features on a case level for further usage. Therefore, I need the output of the function log_to_features.apply() together with the case id (e.g. 'case:concept:name'). Is there a way to extract the processed features together with the case id?

Thank you!

@fit-alessandro-berti
Copy link
Contributor

Dear darjooling86,

At the moment we are offering two types of feature extraction: classic event logs and Pandas dataframes.
See https://pm4py.fit.fraunhofer.de/documentation#item-7-5

The Pandas dataframe one generates a feature table where the case ID is by default included in the columns, while the log-based one no.

We'll try to provide this possibility for the log-based one in the upcoming releases

@darjooling86
Copy link
Author

Thank you for your reply! So this means, currently it is not possible to extract e.g. the feature 'workload' (ENABLE_RESOURCE_WORKLOAD) together with the case id? Correct?

@fit-alessandro-berti
Copy link
Contributor

Unfortunately not there! We have such feature, but the case identifier column is never going to be included in the feature table starting from an EventLog

@darjooling86
Copy link
Author

Thank you. Such a functionality would be quite nice and helpful! ;)

@fit-sebastiaan-van-zelst
Copy link
Contributor

This issue is covered by https://github.com/pm4py/pm4py-core/releases/tag/2.2.17

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

No branches or pull requests

3 participants