+ 1

How many different indices may a dataframe have?

27th Jan 2021, 8:39 AM
Mithun Kumar
Mithun Kumar - avatar
2 odpowiedzi
+ 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.
27th Jan 2021, 8:51 AM
noteve
noteve - avatar
+ 1
Right 《 Nicko12 》 👍
27th Jan 2021, 8:54 AM
Mithun Kumar
Mithun Kumar - avatar