Skip to content

Instantly share code, notes, and snippets.

@BryanCutler
Last active May 4, 2021 22:31
Show Gist options
  • Save BryanCutler/45d6f4c4502817aeb19fa9c88902d16e to your computer and use it in GitHub Desktop.
Save BryanCutler/45d6f4c4502817aeb19fa9c88902d16e to your computer and use it in GitHub Desktop.
Text Extensions for Pandas: Tips and Techniques for Extending Pandas, Part 1 Blog
# Addition of `Span` with Series of `SpanDtype` produces another Series
df["span"].iloc[1] + df["span"].iloc[3:5]
# 3 [0, 16): 'Monty Python and'
# 4 [0, 20): 'Monty Python and the'
# Name: span, dtype: SpanDtype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment