Get Integer division of dataframe and other, element-wise.
Prototype:
<DataFrame_Obj>.floordiv (<number> )
The floor division functions floordiv() will return the floor division of the DataFrame elements (it is similar to the operator ' // '). Floor division ignores the part after decimal, and give only the integer value. But if the number is negative then the number will be round off to the number bearest to 0.
Ex:-
50//3 -> 16
-50//3 -> -17
Note:- All the columns should be integer, Otherwise error will occour.
<DataFrame_Obj>.floordiv (<number> )
The floor division functions floordiv() will return the floor division of the DataFrame elements (it is similar to the operator ' // '). Floor division ignores the part after decimal, and give only the integer value. But if the number is negative then the number will be round off to the number bearest to 0.
Ex:-
50//3 -> 16
-50//3 -> -17
Note:- All the columns should be integer, Otherwise error will occour.
No comments:
Post a Comment