recmeapp commited on
Commit
25499d7
1 Parent(s): 088d94f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
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.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?
 
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?