'How to group by user id to a specific row?
I am trying to select the unique user id that is going to a specific user.
let's say I want it to be 200,000 rows from 10M rows. I want only only 1500 unique user id with around 200,000 rows(the rows does not need to be specific a few thousands is okay). Each user has multiple ratings.
Here's the dataset link.
How I load the data.
names = ['user_id', 'movie_id', 'rating', 'timestamp']
df = pd.read_csv('ratings.csv', sep='::', names=names)
print(df)
Is there any way to group it like that with pandas?
Solution 1:[1]
I can't believe I spent so much time on this, but there was a overflow-y:scroll property on the parent container of the component the router-link was in, i'm not sure why taking this off made it work , it broke something else completely unrelated, but thats another question.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | One FootN |
