Using external Faker library to generate synthetic data

Options
BusyBee
BusyBee Registered Posts: 1 ✭✭✭

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

Answers

  • Catalina
    Catalina Dataiker, Dataiku DSS Core Designer, Registered Posts: 135 Dataiker
    Options

    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

Setup Info
    Tags
      Help me…