Adding Time Attribute to Data
rensle
New Altair Community Member
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?
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:
1
Answers
-
Would like to know how to do this too.
0 -
@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.
1