Open In App

Data-Analysis-fork-ds | Question 3

Last Updated : 01 May, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads