Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to get SIDs from Pipeline's index

With the notebook included, how do I get to just the ticker/sid that is in the index of this Pipeline?
If I do result.index(), I get a Multi-Index DF, which just makes everything more complicated. I feel like this should be very simple but I'm stuck

Thanks for all the help!

3 responses
result.index.levels[1].unique()  

Actually, this does not work for some reason for the pipeline in the tutorial ("Getting Started"), see my post:

https://www.quantopian.com/posts/q500-filter-does-not-seem-to-work-properly

In fact, I have noticed that the command:

result.index.levels[1].unique()

only works, if the pipeline has no columns. Otherwise, the resulting unique ticker list is larger than the pipeline itself (which does not make sense obviously).