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
Finding Frequency of a datatype
I'm working with data that is essentially a bunch of timestamps for checkins. I've separated the dates into separate variables for month, day, hour but for the past hour I've been trying (to no avail) to basically convert this data into a format similar to what is displayed on a histogram.
Currently my data looks similar to this:
Month | Day | Hour
1 |1 | 1
1 |1 | 1
1 |1 | 1
1 |1 | 4
1 |1 | 4
1 |1 | 5
How do I convert in into data similar to this:
Month | Day | Hour | Frequency
1 |1 |1 | 3
1 |1 |2 | 0
1 |1 |3 | 0
1 |1 |4 | 2
1 |1 |5 | 1
Any help will be much appreciated, thank you so much
Currently my data looks similar to this:
Month | Day | Hour
1 |1 | 1
1 |1 | 1
1 |1 | 1
1 |1 | 4
1 |1 | 4
1 |1 | 5
How do I convert in into data similar to this:
Month | Day | Hour | Frequency
1 |1 |1 | 3
1 |1 |2 | 0
1 |1 |3 | 0
1 |1 |4 | 2
1 |1 |5 | 1
Any help will be much appreciated, thank you so much
0
Answers