Skip to content

Instantly share code, notes, and snippets.

@seanpue
Last active August 29, 2015 14:27
Show Gist options
  • Save seanpue/4219e8885d62a26c716c to your computer and use it in GitHub Desktop.
Save seanpue/4219e8885d62a26c716c to your computer and use it in GitHub Desktop.
concatenate sub indexes in pandas and select from parent
df
xdf = df[df.index.isin(adf.index.append([bdf.index, cdf.index]))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment