recmeapp commited on
Commit
6ccc289
·
1 Parent(s): c98ef7a

updated the provided code

Browse files
Files changed (1) hide show
  1. README.md +11 -9
README.md CHANGED
@@ -20,7 +20,7 @@ size_categories:
20
 
21
  ### Dataset Summary
22
 
23
- This dataset contains more than 2.1 million negative user reviews (reviews with 1 or 2 ratings) from 9869 apps across 48 categories from Google Play. Moreover, the number of votes that each review received within a month is also recorded. Those reviews having more votes can be cosidered as improtant reviews.
24
 
25
  ### Supported Tasks and Leaderboards
26
 
@@ -33,22 +33,24 @@ English
33
  ## How to use the dataset?
34
  ```
35
  from datasets import load_dataset
 
36
 
37
  # Load the dataset
38
  dataset = load_dataset("recmeapp/thumbs-up")
39
 
40
  # Convert to Pandas
41
  dfs = {split: dset.to_pandas() for split, dset in dataset.items()}
 
42
 
43
- # How many rows are there in the training split of the thumbs-up dataset?
44
- print(f'There are {len(dfs["train"])} rows in the training split of the thumbs-up dataset.')
45
 
46
- # What is the highest vote a review received in the training split of the thumbs-up dataset?
47
- print(f'The highest vote a review received is {max(dfs["train"]["votes"])}.')
48
 
49
- # How many categoris are there in the training split of the thumbs-up dataset?
50
- print(f'There are {len(dfs["train"]["category"].unique())} unique categories.')
51
 
52
- # How many unique app are there in the training split of the thumbs-up dataset?
53
- print(f'There are {len(dfs["train"]["app_name"].unique())} unique apps.')
54
  ```
 
20
 
21
  ### Dataset Summary
22
 
23
+ This dataset contains more than 2.1 million negative user reviews (reviews with 1 or 2 ratings) from 9775 apps across 48 categories from Google Play. Moreover, the number of votes that each review received within a month is also recorded. Those reviews having more votes can be cosidered as improtant reviews.
24
 
25
  ### Supported Tasks and Leaderboards
26
 
 
33
  ## How to use the dataset?
34
  ```
35
  from datasets import load_dataset
36
+ import pandas as pd
37
 
38
  # Load the dataset
39
  dataset = load_dataset("recmeapp/thumbs-up")
40
 
41
  # Convert to Pandas
42
  dfs = {split: dset.to_pandas() for split, dset in dataset.items()}
43
+ dataset_df = pd.concat([dfs["train"], dfs["validation"], dfs["test"]])
44
 
45
+ # How many rows are there in the thumbs-up dataset?
46
+ print(f'There are {len(dataset_df)} rows in the thumbs-up dataset.')
47
 
48
+ # How many unique apps are there in the thumbs-up dataset?
49
+ print(f'There are {len(dataset_df["app_name"].unique())} unique apps.')
50
 
51
+ # How many categoris are there in the thumbs-up dataset?
52
+ print(f'There are {len(dataset_df["category"].unique())} unique categories.')
53
 
54
+ # What is the highest vote a review received in the thumbs-up dataset?
55
+ print(f'The highest vote a review received is {max(dataset_df["votes"])}.')
56
  ```