Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Cross table
Hello, I am trying to get the information of several Excel files in a folder.
Each file has the following format:
Date store1 store2 store3
dd/mm/yyyy $ #.00(sales) etc
I would like to crosstable this formato to obtain this one:
Date store_id Sales
dd/mm/yy store1 $ xxxx
I will appreciate your guide to get an answer.
Best regards
Each file has the following format:
Date store1 store2 store3
dd/mm/yyyy $ #.00(sales) etc
I would like to crosstable this formato to obtain this one:
Date store_id Sales
dd/mm/yy store1 $ xxxx
I will appreciate your guide to get an answer.
Best regards
0
Best Answer
-
lionelderkrikor RapidMiner Certified Analyst, Member Posts: 1,195 UnicornHi @Jabazan,
Use the De-Pivot operator :
UPDATE : Check the create nominal index parameter of De-Pivot operator (to have the expected results) :
The process :<?xml version="1.0" encoding="UTF-8"?><process version="9.4.000-BETA"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="9.4.000-BETA" expanded="true" name="Process"> <parameter key="logverbosity" value="init"/> <parameter key="random_seed" value="2001"/> <parameter key="send_mail" value="never"/> <parameter key="notification_email" value=""/> <parameter key="process_duration_for_mail" value="30"/> <parameter key="encoding" value="SYSTEM"/> <process expanded="true"> <operator activated="true" breakpoints="after" class="utility:create_exampleset" compatibility="9.4.000-BETA" expanded="true" height="68" name="Create ExampleSet" width="90" x="246" y="85"> <parameter key="generator_type" value="comma separated text"/> <parameter key="number_of_examples" value="100"/> <parameter key="use_stepsize" value="false"/> <list key="function_descriptions"/> <parameter key="add_id_attribute" value="false"/> <list key="numeric_series_configuration"/> <list key="date_series_configuration"/> <list key="date_series_configuration (interval)"/> <parameter key="date_format" value="yyyy-MM-dd HH:mm:ss"/> <parameter key="time_zone" value="SYSTEM"/> <parameter key="input_csv_text" value="Date,store1,store2,store3 01/01/2019, 10,20,30 02/01/2019,40,50,60"/> <parameter key="column_separator" value=","/> <parameter key="parse_all_as_nominal" value="false"/> <parameter key="decimal_point_character" value="."/> <parameter key="trim_attribute_names" value="true"/> </operator> <operator activated="true" class="de_pivot" compatibility="9.4.000-BETA" expanded="true" height="82" name="De-Pivot" width="90" x="380" y="85"> <list key="attribute_name"> <parameter key="Sales" value="store.*"/> </list> <parameter key="index_attribute" value="store_Id"/> <parameter key="create_nominal_index" value="false"/> <parameter key="keep_missings" value="false"/> </operator> <connect from_op="Create ExampleSet" from_port="output" to_op="De-Pivot" to_port="example set input"/> <connect from_op="De-Pivot" from_port="example set output" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator> </process>
Hope this helps,
Regards,
Lionel
8
Answers