Skip to main contentSkip to solution

A Series is a ________ which by default have _________ data labels.

Solution

✅ Correct Option: 2

A pandas Series is a one-dimensional array that holds data of any type. If no index is given, its data labels (the index) are the integers 0,1,2,…,n−10, 1, 2, \dots, n-1, so they are numeric by default.


Options 1 and 4: a two-dimensional structure is a DataFrame, not a Series.

Option 3: string labels are possible only if you set them yourself with the index argument. They are not the default.

Keyboard Shortcuts

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