Forum Discussion

sudhav's avatar
sudhav
Icon for Helper V rankHelper V
2 years ago
Solved

Need to pass multiple values as parameters in notebook by using pyspark

Hi Team, I have a notebook using pyspark. there i have written a code that is fetching share market value for every 5 mins. below is my notebook code In above snap, i have given company name...
  • 12angrymentiger's avatar
    2 years ago

    Here's a really simple example.

     

    In your parent notebook you would set a dictionary from a list of keys/values, then you would call the child notebook (Notebook 1) in this case by passing in that dictionary as a parameter. You could then do anything you want with the values coming in.

     

     

    Parent Notebook:

     

     

     

     

    Notebook 1:

     

    Make sure to set the companylist as a parameter

     

     

     

     

     

     

     

    Results: