desc
In [1]:
Copied!
%run nb_helpers.py
from datar.base import factor, letters
from datar.dplyr import desc
nb_header(desc)
%run nb_helpers.py
from datar.base import factor, letters
from datar.dplyr import desc
nb_header(desc)
In [2]:
Copied!
desc(range(1,11))
desc(range(1,11))
Out[2]:
array([ -1, -2, -3, -4, -5, -6, -7, -8, -9, -10])
In [3]:
Copied!
desc(factor(letters))
desc(factor(letters))
Out[3]:
array([ -0., -1., -2., -3., -4., -5., -6., -7., -8., -9., -10., -11., -12., -13., -14., -15., -16., -17., -18., -19., -20., -21., -22., -23., -24., -25.])