The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
questions on importing EXCEL files whose columns are of mixed formats
Hello, I am trying to read an Excel file into Rapidminer. However, this Excel file have mixed data format. For instance, a given column may contain some cells which are just numerical values, while some other cells are plain texts. How should I set up formats when using ReadExcel operator.
Tagged:
0
Answers
RapidMiner can only handle columns with a consistent data type. So in your case you have to define all columns as polynominal to make sure that the Read Excel operator can correctly read the complete file. Then you can process the file further in RapidMiner. If there is a condition that determines the type of a row you could use Filter Examples to split the data set into a part that contains the text values and another that contains the numbers. Then use Parse Numbers on the number part to convert polynominal to numbers.
Please note that Parse Numbers will silently fail if there is a value in the column that cannot be converted to a number.
Best regards,
Marius
hello
i am also faceing same problem . my dataset contains mixed formats . when i am importing excel file . it showing error "cannot get numeric value from a text file . " how can i solve this ?
thnak you
As Marius suggested originally, the best solution is to set the data type to polynominal during the Excel import, which will then allow both numeric and non-numeric characters and all the data will be imported. Once all the data is in RapidMiner, you can then convert the numerical data using "Parse Numbers" and also decide how you want to deal with the non-numerics (simply have missing values, impute missing values, etc.).
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts