Data-Analysis-fork-ds | Question 3
Last Updated :
01 May, 2022
Q3. Consider the dataframe “df” , what is the result of the following operation df[‘price’] = df[‘price’].astype(int) ?
(A)
cast the row ‘price’ to an integer value
(B)
cast the column ‘price’ to an integer value
(C)
cast the entire dataframe to an integer value
Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Share your thoughts in the comments
Please Login to comment...