PRP201c_-_FA_2022_-_FE_132.webp
Asta_boy

PRP201c_-_FA_2022_-_FE_132.webp

  • Media owner Asta_boy
  • Ngày thêm
Multiple choices 3/50
(Choose 1 answer)
Suppose you are given a dataframe df.
df = pd.DataFrame({'Click_Id': ['A','B', 'C','D', 'E'], 'Count': [100,200,300,400,250]})
20)
Now you want to change the name of the column 'Count' in df to 'Click Count'. So, for performing that action you have written the following code.
df.rename(columns = {'Count':'Click_Count'})
What will be the output of print statement below? ( Note: Pandas library has been imported as pd)print df.columns
A. ['Click_Id', 'Click_Count']
B. ['Click_Id', 'Count']
Next
C. ['Click_Id']
D. [Error]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 27 28
29
30
31
32
33
34
35
36
37
38
39
40 41 47
43
44
45 46 47 48
49 50

Thông tin

Category
PRP201c
Thêm bởi
Asta_boy
Ngày thêm
Lượt xem
251
Lượt bình luận
2
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom