Skip to main contentSkip to solution

Indexing in Series are of two types: _________ index and ______________index.

Solution

✅ Correct Option: 1

A pandas Series can be indexed in two ways: by position and by label.

A positional index uses the default integers 0,1,2,…0, 1, 2, \dots based on where an element sits, while a labelled index uses the names given to the elements (for example, 'a', 'b', 'c'). Both can be used to access the same element, as in s[0] and s['a'].


Option 2: there is no "functional" index in a Series.

Option 3: "unlabelled" is not a separate type of index; a Series without custom labels simply uses the default positional index.

Option 4: dictionary is one way to create a Series and slicing is one way to access its elements. Neither is a type of index.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question