Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update label for NestedFrame in html repr #64

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tutorials/work_with_lsdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"# %pip install nested-dask\n",
"\n",
"# Comment the following line to skip dependencies installation\n",
"%pip install --quiet lsdb aiohttp light-curve matplotlib"
"%pip install --quiet lsdb==0.3.0 aiohttp light-curve matplotlib"
]
},
{
Expand Down Expand Up @@ -439,7 +439,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "3.10.11"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down
5 changes: 5 additions & 0 deletions src/nested_dask/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def __setitem__(self, key, value):

return super().__setitem__(key, value)

def _repr_html_(self):
# following dask-geopandas lead
output = super()._repr_html_()
return output.replace("Dask DataFrame Structure", "Nested-Dask NestedFrame Structure")

@classmethod
def from_pandas(
cls,
Expand Down
Loading