mramazan commited on
Commit
c0fd123
·
verified ·
1 Parent(s): f5097de

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -0
README.md CHANGED
@@ -39,3 +39,14 @@ this dataset is easy to use with GitHub that trains with MovieLens dataset**
39
  - MyAnimeList URL
40
  - Genres Detailed Genres
41
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  - MyAnimeList URL
40
  - Genres Detailed Genres
41
 
42
+ ## Usage
43
+
44
+ ```bash
45
+ file_path = Path(folder_path).joinpath('ratings.npy')
46
+
47
+ # ratings_array shape: (n_ratings, 3) - columns: [user_id, anime_id, rating]
48
+ ratings_array = np.load(file_path)
49
+
50
+ # Create DataFrame from numpy array
51
+ df = pd.DataFrame(ratings_array, columns=['user_id', 'anime_id', 'rating'])
52
+ ```