+ 1
How many different indices may a dataframe have?
2 Antworten
+ 4
Can you clarify your question and give some examples?
But for now here's my answer:
DataFrame is 2 dimensional, and its index are rows and columns (2 indexes) .
Single row and column
--> df [row, col]
Multiple columns (selective rows)
--> df [rows, [col1, col2 ,...] ]
Multiple rows (selective column)
--> df [ [row1, row2] , cols ]
Multiple rows and columns
--> df [ [row1, row2,...], [col1, col2, ...] ]
Just the columns (multiple)
--> df [ [col1, col2, ... ] ]
and more...
*Indexing with single brackets will result into Series.
+ 1
Right 《 Nicko12 》 👍