Update README.md
Browse files
README.md
CHANGED
@@ -35,13 +35,16 @@ import pandas as pd
|
|
35 |
mbr_data = load_dataset('recmeapp/mobilerec', data_dir='interactions')
|
36 |
mbr_meta = load_dataset('recmeapp/mobilerec', data_dir='app_meta')
|
37 |
|
|
|
|
|
|
|
38 |
# Convert to pandas dataframe
|
39 |
-
mobilerec_df = pd.
|
40 |
|
41 |
# How many interactions are there in the MobileRec dataset?
|
42 |
print(f'There are {len(mobilerec_df)} interactions in mobilerec dataset.')
|
43 |
|
44 |
-
# How many unique app_packages (
|
45 |
print(f'There are {len(mobilerec_df["app_package"].unique())} unique apps in mobilerec dataset.')
|
46 |
|
47 |
# How many unique users are there in the mobilerec dataset?
|
|
|
35 |
mbr_data = load_dataset('recmeapp/mobilerec', data_dir='interactions')
|
36 |
mbr_meta = load_dataset('recmeapp/mobilerec', data_dir='app_meta')
|
37 |
|
38 |
+
# Save dataset to .csv file for creating pandas dataframe
|
39 |
+
mbr_data['train'].to_csv('./mbr_data.csv')
|
40 |
+
|
41 |
# Convert to pandas dataframe
|
42 |
+
mobilerec_df = pd.read_csv('./mbr_data.csv')
|
43 |
|
44 |
# How many interactions are there in the MobileRec dataset?
|
45 |
print(f'There are {len(mobilerec_df)} interactions in mobilerec dataset.')
|
46 |
|
47 |
+
# How many unique app_packages (apps or items) are there?
|
48 |
print(f'There are {len(mobilerec_df["app_package"].unique())} unique apps in mobilerec dataset.')
|
49 |
|
50 |
# How many unique users are there in the mobilerec dataset?
|