from faker import Faker
import pandas as pd
= Faker()
fake
= []
data
# Loop over a range of 5000 records and generate a random paragraph in a key:value pair.
for _ in range(5000):
dict(text=fake.paragraph(variable_nb_sentences=True)))
data.append(
# Convert that list of dictionaries into a pandas dataframe
= pd.DataFrame(data)
df df
text | |
---|---|
0 | Forget trip paper and Mr around lot. |
1 | His include painting success amount child. Who... |
2 | Every keep them against build ask. Practice fo... |
3 | Worker run particular fish officer son. Reason... |
4 | Rest environment must word. Allow brother bene... |
... | ... |
4995 | Product activity paper power factor. Challenge... |
4996 | Choice consider deep quality right wrong. Rece... |
4997 | Kid car hotel field. So employee degree air de... |
4998 | Station authority benefit despite whether. Mov... |
4999 | Daughter ability player. |
5000 rows × 1 columns