Rule: Enrich-convert-csv-to-pandas-dataframe
loading x elements...

Name: Enrich-convert-csv-to-pandas-dataframe

Version: 3

Discussion Thread

Creator: initial_tools

Hardcoded Priority (supersedes the rating): 4.1

This Rule has moderator approval.

React to a task_convert_file_type with a require_format_excel.

If the file targeted by the require_format_pickled_pandas_dataframe is of type csv, runs Enrich_Convert_CSV_to_Pandas_Dataframe on it.

This Rule does NOT use chaining. It was added after the following Rules, to speed things up a bit because it turned out that the conversion CSV->Pandas needed to be fast and so couldn't take two steps:
-Enrich-convert-csv-to-excel-with-possible-chaining
-Enrich-convert-excel-to-pandas-dataframe-with-possible-chaining
-Enrich-convert-pandas-dataframe-to-csv-with-possible-chaining

ID: 334

Created: April 9, 2019, 4:57 p.m.

full definition:

The below is the JSON description of this object.

It is annotated with links to the documentation of each component.

You can hide fields with default values to make things clearer, and copy it to a clipboard to make creating similar Rules and Options easier.

Rule

{ "name" : "Enrich-convert-csv-to-pandas-dataframe", "description" : "React to a task_convert_file_type with a require_format_excel.

If the file targeted by the require_format_pickled_pandas_dataframe is of type csv, runs Enrich_Convert_CSV_to_Pandas_Dataframe on it.

This Rule does NOT use chaining. It was added after the following Rules, to speed things up a bit because it turned out that the conversion CSV->Pandas needed to be fast and so couldn't take two steps:
-Enrich-convert-csv-to-excel-with-possible-chaining
-Enrich-convert-excel-to-pandas-dataframe-with-possible-chaining
-Enrich-convert-pandas-dataframe-to-csv-with-possible-chaining"
, "dependencies" : [

Dependency

{ "symbol" : "task_convert_file_type" }
,

Dependency

{ "symbol" : "require_format_pickled_pandas_dataframe" }
], "threshold" : 2.0, "trigger" :

Trigger

{ "repeat" : [ "theTask", "theRequireTag", "theFileToConvert" ], "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "theTask", "targeted_by" : [

Tag filter (for search)

{ "type" : "tag", "var" : "theRequireTag", "symbol" : "require_format_pickled_pandas_dataframe", "requirement_is_provided" : false, "arguments" : { "1" :

File filter

{ "type" : "file", "var" : "theFileToConvert" }
} }
], "symbol" : "task_convert_file_type", "task_is_finished" : false }
,

File filter (for search)

{ "type" : "file", "var" : "theFileIsACSVFile", "equals" : "theFileToConvert", "name_matches" : ".*\\.csv" }
] }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "enrich-convert-csv-to-pandas", "name" : "enrich-convert-csv-to-pandas", "description" : "", "confidence" : 1010, "trigger" :

Trigger

{ "deactivate_if" : { "theTask" : ["is_nullified", "is_finished"] } }
, "actions" : [

Execute a Program

{ "type" : "execute_program", "var" : "programExecutionEvent", "program" : "Enrich_Convert_CSV_to_Pandas_Dataframe", "arguments" : { "input_file" :

Variable

{ "type" : "variable", "var" : "theFileToConvert" }
} }
,

Create an Option

{ "type" : "create_option", "var" : "postprocessing-enrich-convert-csv-to-pandas", "name" : "postprocessing-enrich-convert-csv-to-pandas", "confidence" : 9999, "trigger" :

Trigger

{ "arguments" : [

File filter (for search)

{ "type" : "file", "var" : "theConvertedFile", "targeted_by" : [

Tag filter (for search)

{ "type" : "tag", "_comment" : "Make sure the file was created as a valid result of the program's execution, not as aside effect of an error or something", "symbol" : "?program_execution_results" }
], "created_by" : "programExecutionEvent" }
] }
, "actions" : [

Create a Tag

{ "type" : "create_tag", "symbol" : "!provide", "arguments" : [

Variable

{ "type" : "variable", "var" : "theRequireTag" }
,

Variable

{ "type" : "variable", "var" : "theConvertedFile" }
] }
] }
] }
], "existing_variables" : { "theTask" :

Variable

{ "type" : "tag" }
, "theRequireTag" :

Variable

{ "type" : "tag" }
, "theFileToConvert" :

Variable

{ "type" : "file" }
, "theFileIsACSVFile" :

Variable

{ "type" : "file" }
, "enrich-convert-csv-to-pandas" :

Variable

{ "type" : "option" }
} }

Rule

{ "name" : "Enrich-convert-csv-to-pandas-dataframe", "description" : "React to a task_convert_file_type with a require_format_excel.

If the file targeted by the require_format_pickled_pandas_dataframe is of type csv, runs Enrich_Convert_CSV_to_Pandas_Dataframe on it.

This Rule does NOT use chaining. It was added after the following Rules, to speed things up a bit because it turned out that the conversion CSV->Pandas needed to be fast and so couldn't take two steps:
-Enrich-convert-csv-to-excel-with-possible-chaining
-Enrich-convert-excel-to-pandas-dataframe-with-possible-chaining
-Enrich-convert-pandas-dataframe-to-csv-with-possible-chaining"
, "dependencies" : [

Dependency

{ "symbol" : "task_convert_file_type", "weight" : 1.0, "comment_filter" : null }
,

Dependency

{ "symbol" : "require_format_pickled_pandas_dataframe", "weight" : 1.0, "comment_filter" : null }
], "threshold" : 2.0, "trigger" :

Trigger

{ "repeat" : [ "theTask", "theRequireTag", "theFileToConvert" ], "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "theTask", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [

Tag filter (for search)

{ "type" : "tag", "var" : "theRequireTag", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "require_format_pickled_pandas_dataframe", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : false, "task_is_finished" : null, "arguments" : { "1" :

File filter

{ "type" : "file", "var" : "theFileToConvert", "role" : "required", "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "name_matches" : null }
} }
], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "task_convert_file_type", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : false, "arguments" : {} }
,

File filter (for search)

{ "type" : "file", "var" : "theFileIsACSVFile", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : "theFileToConvert", "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "name_matches" : ".*\\.csv" }
], "deactivate_if" : {} }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "enrich-convert-csv-to-pandas", "name" : "enrich-convert-csv-to-pandas", "description" : "", "confidence" : 1010, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [], "deactivate_if" : { "theTask" : ["is_nullified", "is_finished"] } }
, "display" : null, "actions" : [

Execute a Program

{ "type" : "execute_program", "var" : "programExecutionEvent", "program" : "Enrich_Convert_CSV_to_Pandas_Dataframe", "arguments" : { "input_file" :

Variable

{ "type" : "variable", "nullable" : false, "var" : "theFileToConvert" }
}, "argument_lists" : {} }
,

Create an Option

{ "type" : "create_option", "var" : "postprocessing-enrich-convert-csv-to-pandas", "name" : "postprocessing-enrich-convert-csv-to-pandas", "description" : null, "confidence" : 9999, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [

File filter (for search)

{ "type" : "file", "var" : "theConvertedFile", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [

Tag filter (for search)

{ "type" : "tag", "_comment" : "Make sure the file was created as a valid result of the program's execution, not as aside effect of an error or something", "var" : null, "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "?program_execution_results", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
], "equals" : null, "created_by" : "programExecutionEvent", "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "name_matches" : null }
], "deactivate_if" : {} }
, "display" : null, "actions" : [

Create a Tag

{ "type" : "create_tag", "var" : null, "symbol" : "!provide", "comment" : null, "weight" : null, "arguments" : [

Variable

{ "type" : "variable", "nullable" : false, "var" : "theRequireTag" }
,

Variable

{ "type" : "variable", "nullable" : false, "var" : "theConvertedFile" }
], "mark_with" : [] }
] }
] }
], "existing_variables" : { "theTask" :

Variable

{ "type" : "tag", "value" : null }
, "theRequireTag" :

Variable

{ "type" : "tag", "value" : null }
, "theFileToConvert" :

Variable

{ "type" : "file", "value" : null }
, "theFileIsACSVFile" :

Variable

{ "type" : "file", "value" : null }
, "enrich-convert-csv-to-pandas" :

Variable

{ "type" : "option", "value" : null }
} }

all versions of this Rule:

Version 3

Version 2 (deleted)

Version 1 (deleted)