Dates / Date_parse / Automodel Preprocessing

NoelNoel MemberPosts:82Maven
edited September 2019 inHelp
Hi All-
I have a process, exported from AutoModel, that decomposes all dates into attributes like "date_name:month_of_year", "date_name:year", "date_name:day_of_month", etc. I'm trying to recoup the original dates from the underlying data (thinking this would be "easy" to do by stringing a bunch of concat() s together and feeding them to date_parse()... e.g. concat(concat(date_name:month_of_year,"/"),date_name:day_of_month))...

This is turning out to be more difficult than anticipated. Any suggestions for a different approach?

Thanks, Noel

Tagged:

Best Answer

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,404RM Data Scientist
    Hi,

    can't you just join the original dates?

    Cheers,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • NoelNoel MemberPosts:82Maven
    你好马丁,我以为这样做,但是关键的would I use for the joining? I was using the date as an index...
    Tghadially
  • NoelNoel MemberPosts:82Maven
    On an unrelated note, I've noticed that "function expressions" (like in Generate Macro or Generate Attributes) don't seem to like attribute names with white space in them. In the past, I've Renamed or Generated Copies to remove the spaces. Perhaps single or double quotes can resolve this issue, but I've never tried...





    Tghadially
  • NoelNoel MemberPosts:82Maven
    Thanks@tftemme!
    Tghadially
Sign InorRegisterto comment.