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

Any operator which works as "merge_asof"

Kumar_AyushKumar_Ayush Member Posts: 7 Learner I
I want to merge two dataframes on date time columns in both the dataframes but both date time are at different frequencies, how I can merge such data in rapid miner using operator

Answers

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn
    Hi!

    There are two important questions here.
    How do you want to do the join? E. g. Timestamp B between Timestamp A - 1 and Timestamp A? What about multiple entries falling into this range? Multiple matches or just one?
    Are the frequencies very different or similar? 

    There is no easy solution for this and the answer depends on the answers to these questions.

    Some pointers:
    - You could convert the timestamps to a number and round that number to an identical point of time in both data frames (e. g. hours) and join on that.
    - You could convert the timestamps to a number, get the previous value of the timestamp for the join and use the Database Envy extension from the Marketplace and "Expression based join" for something like TsB >= TsA1 && TsB <= TsA.
    - There's "Equalize Time Stamps" for recalculating time series data at exact timestamps.

    So it depends on your use case.

    Regards,
    Balázs
  • btibert3btibert3 Member Posts: 3 Contributor I
    I haven't attempted this myself, but one idea might use the python extension, though this would require that you can input two different data sources and hop into pandas code.

    Check out the python extension and related github documentation.
Sign In or Register to comment.