Skip to content

Commit

Permalink
Merge pull request static-frame#576 from chaburkland/540/from_index_i…
Browse files Browse the repository at this point in the history
…tems_support_IH

540/from index items support ih
  • Loading branch information
chaburkland authored Oct 1, 2022
2 parents a13e633 + 32e2025 commit 35ac97c
Show file tree
Hide file tree
Showing 4 changed files with 381 additions and 174 deletions.
5 changes: 4 additions & 1 deletion doc/build_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3538,7 +3538,10 @@ def constructor(row: sf.Series) -> tp.Iterator[str]:
elif attr == 'from_index_items':
yield f'ix1 = sf.Index({kwa(INDEX_INIT_A4)})'
yield f'ix2 = sf.Index({kwa(INDEX_INIT_B1)})'
yield f'{iattr}(((ix1.name, ix1), (ix2.name, ix2)))'
yield f"ih1 = {iattr}(((ix1.name, ix1), (ix2.name, ix2)), name='ih1')"
yield f"ih1"
yield f"ih2 = {iattr}(((ix2.name, ix2), (ix1.name, ix1)), name='ih2')"
yield f"{iattr}(((ih1.name, ih1), (ih2.name, ih2)))"
elif attr == 'from_labels':
yield f'{iattr}({kwa(IH_INIT_FROM_LABELS_A)})'
elif attr == 'from_labels_delimited':
Expand Down
Loading

0 comments on commit 35ac97c

Please sign in to comment.