Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

Using external Faker library to generate synthetic data

BusyBee
Level 1
Using external Faker library to generate synthetic data

Hi everyone, Super beginner question.. 

Do you know what line of code to add in a Jupiter Notebook in Python to use https://faker.readthedocs.io/en/master/ ? i tried the following

#pip install Faker

#from faker install Faker

#fake = Faker ()

#fake.name()

Yet i think i am missing an important step should i upload the packages into DSS or is there another way?

Kind regards, 

Busy 🐝

0 Kudos
1 Reply
CatalinaS
Dataiker
Dataiker

Hi @BusyBee,

You need to install Faker package in the code environment that you are using in your notebook.

For this you need to go to Administration - Code Envs and then select the code environment that you are using and then go to Packages to install . Here you can add Faker package as Requested packages (Pip) and then press Update button:

Screenshot 2022-08-22 at 16.00.44.png

0 Kudos