update readme file
Browse files
README.md
CHANGED
|
@@ -30,4 +30,25 @@ Detecting app issues proactively by identifying prominent app reviews.
|
|
| 30 |
|
| 31 |
English
|
| 32 |
|
| 33 |
-
## How to use the dataset?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
English
|
| 32 |
|
| 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 |
+
```
|