pm4py.objects.conversion.log.variants package

Submodules

pm4py.objects.conversion.log.variants.df_to_event_log_1v module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

pm4py.objects.conversion.log.variants.df_to_event_log_1v.apply(df, parameters=None)[source]

Convert a dataframe into a log containing 1 case per variant (only control-flow perspective is considered)

Parameters
  • df – Dataframe

  • parameters – Parameters of the algorithm

Returns

Event log

Return type

log

pm4py.objects.conversion.log.variants.df_to_event_log_nv module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

pm4py.objects.conversion.log.variants.df_to_event_log_nv.apply(df, parameters=None)[source]

Convert a dataframe into a log containing N case per variant (only control-flow perspective is considered)

Parameters
  • df – Dataframe

  • parameters – Parameters of the algorithm

Returns

Event log

Return type

log

pm4py.objects.conversion.log.variants.to_data_frame module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.objects.conversion.log.variants.to_data_frame.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

CASE_ATTRIBUTE_PREFIX = 'case_attribute_prefix'
DEEP_COPY = 'deepcopy'
STREAM_POST_PROCESSING = 'stream_postprocessing'
pm4py.objects.conversion.log.variants.to_data_frame.apply(log, parameters=None)[source]

Converts a provided event log object into a Pandas dataframe. As a basis, an EventStream object is used. In case an EventLog object is given, it is first converted to an EventStream object. Within the conversion, the order is not changed, i.e., the order imposed by the iterator is used.

Parameters
  • log :class:`pm4py.log.log.EventLog` – Event log object, can either be an EventLog object, EventStream Object or Pandas dataframe

  • parameters :class:`dict` – Parameters of the algorithm (currently, this converter is parameter free)

Returns

Pandas dataframe

Return type

df

pm4py.objects.conversion.log.variants.to_event_log module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.objects.conversion.log.variants.to_event_log.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

CASE_ATTRIBUTE_PREFIX = 'case_attribute_prefix'
CASE_ID_KEY = 'pm4py:param:case_id_key'
DEEP_COPY = 'deepcopy'
STREAM_POST_PROCESSING = 'stream_postprocessing'
pm4py.objects.conversion.log.variants.to_event_log.apply(log, parameters=None)[source]

pm4py.objects.conversion.log.variants.to_event_stream module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.objects.conversion.log.variants.to_event_stream.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

CASE_ATTRIBUTE_PREFIX = 'case_attribute_prefix'
COMPRESS = 'compress'
DEEP_COPY = 'deepcopy'
INCLUDE_CASE_ATTRIBUTES = 'include_case_attributes'
STREAM_POST_PROCESSING = 'stream_postprocessing'
pm4py.objects.conversion.log.variants.to_event_stream.apply(log, parameters=None)[source]

Converts the event log to an event stream

Parameters
  • log (pm4py.log.log.EventLog) – An Event log

  • include_case_attributes – Default is True

  • case_attribute_prefix – Default is ‘case:’

  • enable_deepcopy – Enables deepcopy (avoid references between input and output objects)

  • Returns – ——-

  • log (pm4py.log.log.EventLog) – An Event stream

Module contents

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.