Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.

Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
df = pd.DataFrame({'angles': [0, 3, 4],
                   'degrees': [360, 180, 360]},
                  index=['ellipse', 'triangle', 'rhombus'])
df
Out[2]:
angles degrees
ellipse 0 360
triangle 3 180
rhombus 4 360
In [3]:
df.floordiv(10)
Out[3]:
angles degrees
ellipse 0 36
triangle 0 18
rhombus 0 36