Noos
PT EN
RAN-DBDEA-00217
Ranvier · DBDEA

Prova DBDEA Tópicos: transformation Dificuldade: easy A questão está em en.

A gold orders table feeds a dashboard that averages the rating column, and stakeholders want missing ratings to count as 0 instead of NULL. The engineer preparing the aggregation must keep every order row in the output while making each NULL rating read as 0. Which PySpark operation achieves this?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. dropna() on rating — removing the rows where rating is NULL keeps the dashboard free of missing values entirely
  2. B. fillna(0) on rating — it drops the rows whose rating is NULL, so only genuinely rated orders remain in the output
  3. C. Registering a Python UDF — no built-in DataFrame operation can substitute a constant for NULL values in a column
  4. D. fillna(0) on rating — it replaces each NULL rating with 0 while keeping every order row in the DataFrame
Revelar gabarito

Resposta correta: fillna(0) on rating — it replaces each NULL rating with 0 while keeping every order row in the DataFrame

Referência: https://docs.databricks.com/aws/en/pyspark/reference

02 — Camada de Mielina · Discussão Canônica

Onde a prova tenta te enganar — e como quem passou resolveu.

0 Aprovados

contribuíram nesta questão

Matriz de Dissecção de Alternativas Clique numa alternativa para filtrar ou inaugurar a dissecção.
✦ Síntese Consolidada (Wiki) rev. #1 (baseline) · CC BY-SA 4.0
Inaugurar síntese desta questão →

Ainda não há síntese comunitária consolidada para esta questão. Abaixo está o ponto de partida oficial verificável — se você passou na prova, inaugure a dissecção das alternativas.

Gabarito Oficial (D): fillna(0) on rating — it replaces each NULL rating with 0 while keeping every order row in the DataFrame

Ranvier · DBDEA

Contribuir com a Questão

Sua contribuição constrói sua Bainha Orbital

Contribuições dos pares

Nenhuma contribuição pública ainda. Seja o primeiro aprovado a explicar por que as alternativas incorretas enganam — sua contribuição constrói sua Bainha Orbital.