Detail: Frame: Operator Unary

Overview: Frame: Operator Unary

Frame.__abs__()
>>> f = sf.Frame.from_fields(((10, -2, 0, 0), (8, -3, 8, 0), (1, 0, 9, 12)), index=('p', 'q', 'r', 's'), columns=('a', 'b', 'c'), name='x')
>>> abs(f)
<Frame: x>
<Index>    a       b       c       <<U1>
<Index>
p          10      8       1
q          2       3       0
r          0       8       9
s          0       0       12
<<U1>      <int64> <int64> <int64>
Frame.__invert__()
>>> f = sf.Frame.from_fields(((False, True, True), (True, True, False)), columns=('a', 'b'), index=('p', 'q', 'r'), name='x')
>>> ~f
<Frame: x>
<Index>    a      b      <<U1>
<Index>
p          True   False
q          False  False
r          False  True
<<U1>      <bool> <bool>
Frame.__neg__()
>>> f = sf.Frame.from_fields(((10, -2, 0, 0), (8, -3, 8, 0), (1, 0, 9, 12)), index=('p', 'q', 'r', 's'), columns=('a', 'b', 'c'), name='x')
>>> -f
<Frame: x>
<Index>    a       b       c       <<U1>
<Index>
p          -10     -8      -1
q          2       3       0
r          0       -8      -9
s          0       0       -12
<<U1>      <int64> <int64> <int64>
Frame.__pos__()
>>> f = sf.Frame.from_fields(((10, -2, 0, 0), (8, -3, 8, 0), (1, 0, 9, 12)), index=('p', 'q', 'r', 's'), columns=('a', 'b', 'c'), name='x')
>>> +f
<Frame: x>
<Index>    a       b       c       <<U1>
<Index>
p          10      8       1
q          -2      -3      0
r          0       8       9
s          0       0       12
<<U1>      <int64> <int64> <int64>

Frame: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Assignment | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Transpose | Accessor Fill Value | Accessor Regular Expression | Accessor Hashlib