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                42      42      42      42      42      42
Index               292     308     180     8596    340     212
Columns             856     888     632     9160    912     656
Blocks              748     796     412     748     796     412
Total               1974    2070    1302    10278   2126    1358
<<U7>               <int64> <int64> <int64> <int64> <int64> <int64>

MemoryDisplay: Constructor | Exporter | Display