Question on Python tutorial

Below are the code for the tutorial. But where is the connection string to retrieve the data? How is that datasets being retreived?

import pandas as pd
    

INPUT

data = datasets[0] # assign SQL query results to the data variable
data = data.fillna('') # replace missing values with '' as in the previous lesson
 
1reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Hi,

    Mode Notebooks have access to the results of every SQL query in your report. The way you access those results differs depending on the language you’re using. In each case, all query results are delivered to the Notebook as a custom object called datasets. More on this here: https://help.modeanalytics.com/articles/notebook/

    Hope this helps!

    Reply Like
Like Follow
  • Status Answered
  • 1 mth agoLast active
  • 1Replies
  • 295Views
  • 2 Following

Create A New Discussion

Share your thoughts