Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel.oranyeli committed Jul 4, 2024
1 parent 27812fd commit 23482bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions janitor/functions/complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def complete(
>>> df.complete(
... "group",
... ("item_id", "item_name"),
... ["item_id", "item_name"],
... fill_value={"value1": 0, "value2": 99},
... sort=True
... )
Expand All @@ -155,7 +155,7 @@ def complete(
by setting explicit to `False`:
>>> df.complete(
... "group",
... ("item_id", "item_name"),
... ["item_id", "item_name"],
... fill_value={"value1": 0, "value2": 99},
... explicit=False,
... sort=True
Expand Down
2 changes: 1 addition & 1 deletion janitor/functions/expand_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def expand(
Filter for missing observations:
>>> combo = df.expand('type','size','year')
>>> anti_join = df.merge(combo, how='right', indicator=True)
>>> anti_join.query("_merge=='right_only").drop(columns="_merge")
>>> anti_join.query("_merge=='right_only'").drop(columns="_merge")
type year size
1 apple 2012 XS
2 apple 2011 XS
Expand Down

0 comments on commit 23482bd

Please sign in to comment.