Q. Consider the same data-frames One and Two. Write a statements that the missing value of One is filled or combined from the corresponding value of data frame Two. Also show the result after combining the values.
One :-
name value
0 p 1.0
1 q 2.0
2 r NaN
Two :-
name value
0 p 1.0
1 q NaN
2 r 3.0
3 s 4.0
Answer :-
One.combine_first (Two)
The result after combining will be:-
>>>One,combine first (Two)
name value
0 p 1.0
1 q 2.0
2 r 3.0
3 s 4.0
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )