Adding Time Attribute to Data

rensle
rensle New Altair Community Member
edited November 2024 in Community Q&A
Hi everyone,
I have a problem with my data preprocession:

I need a Time Attribute column for the GSP operator in my data. The data looks like this

SessionNo  ItemNo  TransactType
1                  12            0
1                  13            1
1                  12            1
2                  15            0
......

the Session ID stands for a customer and the itemNo and TransactType for his actions.

Now i'd like to have a Time Attribute Column, so the data looks like this:

SessionNo  Time  ItemNo  TransactType
1                    1          12            0
1                    2            13            1
1                    3            12            1
2                    1            15            0



Any suggestions?

Tagged:

Answers

  • SHSguy
    SHSguy New Altair Community Member

    Would like to know how to do this too. 

  • Thomas_Ott
    Thomas_Ott New Altair Community Member

    @SHSguy using a Generate Attributes operator create a new attribute called 'Date' and set it to date_now(). Unless you need to pass a real date to it, then using a Set Role to set the Date attribute to ID. I think it should flow through the process.