Question: Question 2 - Python Literacy (18 pts.] Subquestions 2.1, 2.2 and 2.3 are unrelated to each other. 2.1) (4 points) Suppose we have a pandas
![Question 2 - Python Literacy (18 pts.] Subquestions 2.1, 2.2 and](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f51753672af_32266f51752e823a.jpg)
Question 2 - Python Literacy (18 pts.] Subquestions 2.1, 2.2 and 2.3 are unrelated to each other. 2.1) (4 points) Suppose we have a pandas dataframe called df and we want to normalize the price column using Min-Max normalization. Fill in the blank code to create a normalized price column. min_price - min (df ["price") max_price - max(df ["price"]) af ("norn_price"] - df ["price").apply(lambda x: ......) 2.2) (4 points) Assume that we have a dataframe object named af and we want to set the date column as its index. When we execute the line below, we observe that the variable df becomes None. What is the reason? How can we fix it? df - df.set_index('date', inplace - True)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
