Informatics Practices
To divide the values of two DataFrames, …………… function may be used.
- divide
- div
- rdiv
- division
Python Pandas
3 Likes
Answer
div, rdiv
Reason — We can divide two DataFrame objects using either (/) operator or using div() function as per syntax : <DF1>.div(<DF2>) which means <DF1>/<DF2> or by using rdiv() function i.e., reverse division as per syntax : <DF1>.rdiv(<DF2>) which means <DF2>/<DF1>.
Answered By
3 Likes
Related Questions
To add two DataFrames' values, …………… function may be used.
- plus
- rplus
- add
- radd
To subtract the values of two DataFrames, …………… function may be used.
- sub
- difference
- minus
- rsub
Which of the following would give the same output as DF/DF1 where DF and DF1 are DataFrames ?
- DF.div(DF1)
- DF1.div(DF)
- Divide(DF, DF1)
- Div(DF, DF1)
To skip NaN values in a calculation, you can specify …………… attribute.
- NaN
- NA
- skipna
- all of these