size_categories:1K<n<10K format:parquet modality:text library:datasets library:pandas library:mlcroissant library:polars region:us
---
dataset_info:
  features:
  - name: persona
    dtype: string
  splits:
  - name: train
    num_bytes: 646990.11445
    num_examples: 6731
  download_size: 386010
  dataset_size: 646990.11445
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
---

# PersonaHub with Business Keywords

Filter from https://huggingface.co/datasets/proj-persona/PersonaHub

I am using this code to filter the dataset

```python
from datasets import load_dataset, Dataset
import random

# Load the original dataset
dataset = load_dataset('proj-persona/PersonaHub','persona',split='train')

def filter_keywords(example):
    keywords=["business","management"]
    persona = example['persona'].lower()
    return any(keyword in persona for keyword in keywords)

# Apply the filter
filtered_dataset = dataset.filter(filter_keywords)

# Print the filtered dataset
print(filtered_dataset)
```
