Update README.md
Browse files
README.md
CHANGED
|
@@ -34,6 +34,21 @@ import pandas as pd
|
|
| 34 |
# load the dataset and meta_data
|
| 35 |
mbr_data = load_dataset('recmeapp/mobilerec', data_dir='interactions')
|
| 36 |
mbr_meta = load_dataset('recmeapp/mobilerec', data_dir='app_meta')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
```
|
| 38 |
|
| 39 |
[More Information Needed]
|
|
|
|
| 34 |
# load the dataset and meta_data
|
| 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.DataFrame(mbr_data)
|
| 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 (Applications) are there?
|
| 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?
|
| 48 |
+
print(f'There are {len(mobilerec_df["uid"].unique())} unique users in mobilerec dataset.')
|
| 49 |
+
|
| 50 |
+
# How many categoris are there?
|
| 51 |
+
print(f'There are {len(mobilerec_df["app_category"].unique())} unique categories in mobilerec dataset.')
|
| 52 |
```
|
| 53 |
|
| 54 |
[More Information Needed]
|