Difference Between Dataframe.div And Dataframe.divide In Pandas
I am trying to divide elements of a one column of pandas data frame with same row index elements of another column. While trying to find library functions to achieve this, I came a
Solution 1:
They are both aliases for the function pd.DataFrame.truediv, and they all do the same thing - perform index-aligned division along the given axis.
truediv is one of the main operations specified in the _op_descriptions data-structure in pandas/core/ops.py. div and divide are later created as references to this.
Post a Comment for "Difference Between Dataframe.div And Dataframe.divide In Pandas"