Last active
May 4, 2021 22:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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