問題文
A DataFrame column holds objects. Selecting a nested field with the indexing syntax returns values wrapped in double quotes. The report needs the plain values. What resolves it?
選択肢
- Cast the selected value to the wanted type, because field values are returned as string literals by default.
- Read the column with the reader and supply a schema, because a schema removes the quoting at read time.
- Apply a trim to remove the surrounding characters, which is the documented way to recover the plain value.
- Select the field with the path helper instead of the syntax, because the helper returns typed values while indexing returns literals.