Skip to content

Commit

Permalink
introduced debug verb
Browse files Browse the repository at this point in the history
  • Loading branch information
TyberiusPrime committed Jun 25, 2024
1 parent f79f77d commit 4227f29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dppd/single_verbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ def _display(obj): # pragma: no cover
display(obj) # noqa: F821 - Jupyter only, needs to import.
return obj

@register_verb(name="debug", types=[pd.DataFrame, pd.Series])
def _debug(obj): # pragma: no cover
"""Verb: display head and tail of a DataFrame or Series"""
display(ends()) # noqa: F821 - Jupyter only, needs to import.
return obj




@register_verb("ungroup", types=[DataFrameGroupBy])
def ungroup_DataFrameGroupBy(grp):
Expand Down

0 comments on commit 4227f29

Please sign in to comment.