Skip to content

Commit 48ff590

Browse files
Merge remote-tracking branch 'upstream/hotfixes' into release
2 parents 5f1f2c0 + 66121b4 commit 48ff590

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/process_cubes.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ def execute_script():
2929

3030
# using the results in `cell_case_dict`, we can filter the dataframe on a given cell.
3131
# for example,
32-
33-
filt_df1 = dataframe[dataframe["case:concept:name"].isin(cell_case_dict[('concept:name_T17CheckreportYtostopindication', 'org:resource_Resource01')])]
32+
filt_df1 = dataframe[dataframe["case:concept:name"].isin(cell_case_dict[('concept:name_T17 Check report Y to stop indication_y', 'org:resource_Resource01_x')])]
3433
print(filt_df1)
3534
except:
3635
traceback.print_exc()
36+
#input()
3737

3838
try:
3939
# let's build another process cube!
4040
# as rows, I want the presence (or not) of the activity 'T06 Determine necessity of stop advice'
4141
# as columns, I want the channel used to submit the request
4242

43-
cube_df2, cell_case_dict2 = process_cube_builder.apply(feature_table, x_col="concept:name_T06Determinenecessityofstopadvice", y_col="case:channel", agg_col="@@sojourn_time")
43+
cube_df2, cell_case_dict2 = process_cube_builder.apply(feature_table, x_col="concept:name_T06 Determine necessity of stop advice_y", y_col="case:channel", agg_col="@@sojourn_time")
4444

4545
print(cube_df2)
4646
#print(cell_case_dict2)
@@ -49,11 +49,12 @@ def execute_script():
4949
# for example, let's filter on the cases reaching the 'Desk' channel and containing zero occurrences
5050
# of the activity 'T06 Determine necessity of stop advice'
5151

52-
cell = [x for x in cell_case_dict2 if x[1] == 'case:channel_Desk' and x[0].left < 0 < x[0].right][0]
52+
cell = [x for x in cell_case_dict2 if x[1] == 'case:channel_Desk_x' and x[0].left < 0 < x[0].right][0]
5353
filt_df2 = dataframe[dataframe["case:concept:name"].isin(cell_case_dict2[cell])]
5454
#print(filt_df2)
5555
except:
5656
traceback.print_exc()
57+
#input()
5758

5859
try:
5960
# let's try to build another process cube
@@ -72,6 +73,7 @@ def execute_script():
7273
print(filt_df3)
7374
except:
7475
traceback.print_exc()
76+
#input()
7577

7678
try:
7779
# let's try to build another process cube
@@ -93,6 +95,7 @@ def execute_script():
9395
print(filt_df3)
9496
except:
9597
traceback.print_exc()
98+
#input()
9699

97100

98101
if __name__ == "__main__":

pm4py/objects/log/util/df_features_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ def select_string_column(
189189
+ str(c)
190190
.encode("ascii", errors="ignore")
191191
.decode("ascii")
192-
.replace(" ", "")
193192
for c in crosstab.columns
194193
]
195194
# Merge once with all columns
@@ -228,7 +227,6 @@ def select_string_column(
228227
+ str(c)
229228
.encode("ascii", errors="ignore")
230229
.decode("ascii")
231-
.replace(" ", "")
232230
for c in pivot.columns
233231
]
234232

pm4py/objects/log/util/pl_lazy_fea_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def _sanitize_feature_name(prefix: str, value: Any) -> str:
3333
str(value)
3434
.encode("ascii", errors="ignore")
3535
.decode("ascii")
36-
.replace(" ", "")
3736
)
3837
if not sanitized:
3938
sanitized = "value"

0 commit comments

Comments
 (0)