CommencerCommencer gratuitement

Storing and reusing a query

DataLab notebooks allow you to parameterize your queries by storing and reusing variables, queries, and DataFrames.

Have a go at storing and reusing a query using a sample dataset.

Cet exercice fait partie du cours

DataLab with SQL

Afficher le cours

Instructions

  • Set the provided SQL cell to query mode and name it unicorn_query; run this cell.
  • Create a new SQL cell using the same data source, write any query and store the output as a DataFrame called unicorn_df.

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice