Computer Science · Python Pandas
Given a Pandas Series 'ser1' with index 0 to 5 and values [69, 80, 20, 50, 100, 70], what will be the output of the command: print(ser1 >= 70)?
- 1An output showing only indices 1 and 4 along with their original data values.
- 2A Series containing True only for indices 1, 4, and 5, omitting the other indices.
- 3A Series with indices 0 to 5 containing boolean values: False, True, False, False, True, True respectively.✓
- 4An output showing only rows with indices 1, 4, and 5 and their respective integer values.
Correct answer
A Series with indices 0 to 5 containing boolean values: False, True, False, False, True, True respectively.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Pandas?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Pandas