Detail: MemoryDisplay: Exporter

Overview: MemoryDisplay: Exporter

MemoryDisplay.to_frame()[source]

Return a Frame of byte counts.

>>> f = sf.Frame.from_fields(((10, 2, 8, 3), (False, True, True, False), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<Frame: x>
<Index>    a       b      c               <<U1>
<Index>
0          10      False  1517-01-01
1          2       True   1517-04-01
2          8       True   1517-12-31
3          3       False  1517-06-30
<int64>    <int64> <bool> <datetime64[D]>
>>> f.memory.to_frame()
<Frame: <Frame: x>>
<Index>             L       LM      LMD     R       RM      RMD     <<U3>
<Index>
Name                50      50      50      50      50      50
Index               236     252     124     8540    284     156
Columns             800     832     576     9104    856     600
Blocks              748     796     412     748     796     412
Total               1862    1958    1190    10166   2014    1246
<<U7>               <int64> <int64> <int64> <int64> <int64> <int64>

MemoryDisplay: Constructor | Exporter | Display