home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 872062632

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/5201#issuecomment-872062632 https://api.github.com/repos/pydata/xarray/issues/5201 872062632 MDEyOklzc3VlQ29tbWVudDg3MjA2MjYzMg== 4160723 2021-07-01T09:00:12Z 2021-07-01T09:00:31Z MEMBER

Here are some profiling results on my laptop (MacOS 11.2, MacBook Pro 13-inch, 2019).

versions:

chrome: 91.0.4472.114 jupyterlab: 3.0.14 xarray: (master) pandas: 1.2.2

The results below only show the refresh of the ouput cell when I re-execute it (I used the screenshots in chrome's web developer tools to manually set the time span of interest on the profiling timeline).

I've also measured the rendering of a very basic pandas dataframe using

python import xarray as xr import numpy as np import pandas as pd data = np.random.rand(4) a = xr.DataArray(data, coords=[np.arange(4)], dims=['x']) df = pd.DataFrame({'col': data})

pandas / no additional cell

pandas / many empty cells

xarray / no additional cell

xarray / many empty cells

So it seems to me that it's more a Jupyter notebook issue. The decrease in performance (rendering time) scales pretty much the same for pandas and xarray reprs.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  863506023
Powered by Datasette · Queries took 89.492ms · About: xarray-datasette