ExamGecko
Question list
Search
Search

Question 40 - DSA-C02 discussion

Report
Export

To return the contents of a DataFrame as a Pandas DataFrame, Which of the following method can be used in SnowPark API?

A.
REPLACE_TO_PANDAS
Answers
A.
REPLACE_TO_PANDAS
B.
SNOWPARK_TO_PANDAS
Answers
B.
SNOWPARK_TO_PANDAS
C.
CONVERT_TO_PANDAS
Answers
C.
CONVERT_TO_PANDAS
D.
TO_PANDAS
Answers
D.
TO_PANDAS
Suggested answer: D

Explanation:

To return the contents of a DataFrame as a Pandas DataFrame, use the to_pandas method.

For example:

1. >>> python_df = session.create_dataframe(['a', 'b', 'c'])

2. >>> pandas_df = python_df.to_pandas()

asked 23/09/2024
Matthew McConnell
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first