Python leftmost column index?

Asked 2 years ago, Updated 2 years ago, 42 views

In .iloc[,0], 0 is thought to be the leftmost column, but the second column is retrieved from the leftmost column.

How do I retrieve the leftmost column?

I think the last refresh is in column 0 in the picture and I want to bring up the column in Calendar Base, what should I do?

python pandas

2022-09-20 22:08

1 Answers

That's an index.

df.index


2022-09-20 22:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.