Last active
May 4, 2021 21:55
-
-
Save BryanCutler/c4e248bcce2e7ac2637f5a8ef5da85cc 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
# Reduce the `SpanArray` to a single `Span` covering tokens 2 up to 5. | |
df["span"].iloc[2:5].sum() | |
# [6, 20): 'Python and the' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment