In my infinite quest of teaching myself program, I have come to find that the easiest questions to ask about doing something is the HARDEST to grasp (programming-wise).
Case in point:
Let's say I have an output from printing out a data frame:
Work Date Sequence Numbers
01/01/2023 01 02 03 04 05 06
02/01/2023 07 08 09 10 11 12
03/01/2023 13 14 15 16 17 18
I have (slowly) learned how to use iloc
in pulling out data from the series and retrieving values from the index. However, I am hitting a wall in pulling the ACTUAL data from within the series to manipulate.
For example - in the output above, I'd love to be able to pull out the value of 1 2 3
or remove the last values and put that in its own series. Or maybe pull out all of the values and give them its own column.
My first thought was using regular python slicing techniques, however, I'm either not getting it or it doesn't work well with Pandas when I use it. Lastly, I've tried searching all over YouTube and Stack Overflow for extracting ACTUAL data, however, it's yielded nothing to what I'm looking for.
Thoughts?