フリー問題

SnowPro Specialty: Snowpark のフリー問題 16 / 20 問目

問題文

A retail analyst needs the rows of a product table where the identifier equals 1, written with the DataFrame API rather than a statement. Which expression style does the documentation show for the condition?

選択肢

  1. Call select with the column and then compare the resulting DataFrame to the value, since comparison on a DataFrame produces the filtered set.
  2. Pass the wanted value to the where method as a positional argument, letting the API match it against the first column.
  3. Pass a Python dictionary of column names and wanted values to the filter method, which the API converts into a predicate.
  4. Pass a column expression built with the col helper and the equality operator to the filter method.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。