turicreate icon indicating copy to clipboard operation
turicreate copied to clipboard

Calling .head() on an SFrame with an NDArray is slow

Open srikris opened this issue 6 years ago • 1 comments

When using in iPython, we can make the NDArray repr faster.

import turicreate
sf = turicreate.SFrame('caltech-101.sframe')
sf['pixel_data'] = sf['image'].apply(lambda x: x.pixel_data)

%timeit sf.head()

It takes a few hundred milliseconds

In [27]: %timeit sf.head()
1 loop, best of 3: 185 ms per loop

srikris avatar Mar 02 '18 10:03 srikris

This is still an issue in 6.4

TobyRoseman avatar Sep 01 '20 23:09 TobyRoseman