Skip to content

Commit

Permalink
fix numpy deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jan 22, 2024
1 parent c5474d3 commit 4a7fb66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lenskit/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def movies(self):
fn = self.path / 'movies.csv'
movies = pd.read_csv(fn, dtype={
'movieId': np.int32,
'title': np.object,
'genres': np.object
'title': object,
'genres': object
})
movies.rename(columns={'movieId': 'item'}, inplace=True)
movies.set_index('item', inplace=True)
Expand Down Expand Up @@ -159,7 +159,7 @@ def tags(self):
tags = pd.read_csv(fn, dtype={
'movieId': np.int32,
'userId': np.int32,
'tag': np.object,
'tag': object,
'timestamp': np.int32
})
tags.rename(columns={'userId': 'user', 'movieId': 'item'}, inplace=True)
Expand Down

0 comments on commit 4a7fb66

Please sign in to comment.