I have the following series (df):
Index Information
1 [2, A, C]
2 [3, B, C]
3 [4, C, H]
4 [5, D, H]
5 [6, E, H]
6 [7, F, H]
and I want a series that only extracts and stores the third value of each list :
Index Information
1 [C]
2 [C]
3 [H]
4 [H]
5 [H]
6 [H]
If I try
df[0][2], it correctly gives the required output [C].
however, if I try df[:][2], instead of giving
[C]
[C]
[H]
[H]
[H]
[H]
the output is
3 [4, C, H]
What should be the correct syntax for this?