If I have a DataFrame with a column showing a set array, how do I get specific values in the set array?
df:
0 Array
1 {878,999,858}
Desired:
1st index: 878
2nd index: 999
3rd index: 858
What I tried:
df['Array'].values[0]
>> {878,999,858}
When I tried to add df['Array'].values[0].index.values[2] to get 2nd index, it doesn't allow me to do so.
Thanks.
setis unordered so there is no meaning ofindexdf['Array'].str[1]for second indexOrdering doesn't really matter at this point, then how are you defining2nd index. There is no2nd indexinset