---
title: "Pandas Series Class 12 IP: Notes, Outputs and Questions"
description: "Pandas Series class 12 IP (065) notes for 2026-27: creation, label and position slicing, head and tail, alignment, and 15 output questions run on pandas."
canonical: https://learn.modernagecoders.com/cbse-class-12-informatics-practices-pandas-series
source: src/pages/cbse-class-12-informatics-practices-pandas-series.html
---
> Pandas Series class 12 IP (065) notes for 2026-27: creation, label and position slicing, head and tail, alignment, and 15 output questions run on pandas.

Start here

## Where Series fits in a longer course

The first course is the board subject itself. The second goes on with pandas after school topics end, and the third strengthens the SQL half of the same paper.

[![Informatics Practices Class 11 and 12 course thumbnail](/images/ip-cs-class-11-12.webp)  065 / The whole subject Informatics Practices 11 and 12 Series opens the Class 12 year here, DataFrame and Matplotlib follow, then SQL functions, networks and societal impacts. Open the course →](/courses/cbse-informatics-practices-ip-class-11-12-python-pandas-sql-complete-course)[![Data Science for Teens course thumbnail](/images/data-science-teens.webp)  After the board topics Data Science for Teens NumPy and pandas on real data: filtering, grouping, missing values and honest charts, ending in a data story. Open the course →](/courses/data-science-course-for-teens-python-data)[![MySQL for Teens course thumbnail](/images/mysql-teens.webp)  The other 25 marks MySQL for Teens For a student at ease in pandas who still mixes up WHERE and HAVING. Starts from the first table. Open the course →](/courses/mysql-mastery-for-teens)

Ans. The short version

A pandas Series in Class 12 IP (CBSE 065) is a one-dimensional labelled array: each value has an index label, given by you or numbered from 0. The 2026-27 syllabus asks you to create a Series from an ndarray, a dictionary or a scalar, do mathematical operations on it, use head() and tail(), and select, index and slice its elements. A slice by label includes the last label; a slice by position does not. Modern Age Coders teaches this live, personalised one to one, and a priority demo lets you try a full class first.

Topic 1. Values with labels

## What is a Series in pandas, and how do you create one?

A Series is a one-dimensional array of values in which every value has a label. The set of labels is called the index. You create one with pd.Series(data, index), and the 065 syllabus names three kinds of data: an ndarray, a dictionary and a scalar value.

***From an ndarray**numpy needed*

```
import numpy as np
import pandas as pd

arrows = np.array([9, 10, 7, 8])

plain = pd.Series(arrows)              # labels made for you
rounds = pd.Series(arrows, index=["R1", "R2", "R3", "R4"])

print(plain)
print(rounds)
```

***Output**pandas 2.3*

```
0     9
1    10
2     7
3     8
dtype: int64
R1     9
R2    10
R3     7
R4     8
dtype: int64
```

Left column: index. Right column: values. The last line is the data type of the values.

***From a dictionary**keys become labels*

```
import pandas as pd

rate = {"Haldi": 28, "Jeera": 62, "Saunf": 45}
spice = pd.Series(rate)                # keys become labels
chosen = pd.Series(rate, index=["Saunf", "Haldi", "Hing"])

print(spice)
print(chosen)
```

***Output**pandas 2.3*

```
Haldi    28
Jeera    62
Saunf    45
dtype: int64
Saunf    45.0
Haldi    28.0
Hing      NaN
dtype: float64
```

Hing is not a key, so its value is missing: NaN, "not a number". One NaN is enough to turn the whole Series into float64.

***From a scalar value**one value, repeated*

```
import pandas as pd

locker = pd.Series("free", index=[11, 12, 13])
locker[12] = "taken"

print(locker)
```

***Output**pandas 2.3*

```
11     free
12    taken
13     free
dtype: object
```

The value is repeated once for each label. Strings give dtype object.

### What each call returns

| Call | Result | Remember |
| --- | --- | --- |
| `pd.Series([2.5, 4])` | Labels 0 and 1, values 2.5 and 4.0 | A list works like an ndarray; one decimal makes all of them float64 |
| `pd.Series(5)` | Label 0, value 5 | Without an index a scalar gives a single row |
| `pd.Series(np.array([9, 10, 7]), index=["R1", "R2"])` | ValueError | An array needs exactly as many labels as values |
| `pd.Series({"a": 1}, index=["a", "b"])` | a 1.0, b NaN | A dictionary may have fewer or more labels than keys |
| `pd.Series({9, 10})` | TypeError | A set has no order, so pandas refuses it |

A label may be repeated, and it does not have to be a number. The values are in `s.values`, the labels in `s.index`, and how many there are in `s.size`.

### Series, ndarray or list?

| Point | List | ndarray | Series |
| --- | --- | --- | --- |
| Labels of your own | No | No | Yes |
| Found by | position | position | label or position |
| Times 2 | list is repeated | each value doubled | each value doubled |
| Plus 10 | TypeError | added to each | added to each |
| Adding two of unequal length | joined end to end | ValueError | matched by label, NaN where one is missing |

Topic 2. Reaching a value

## Indexing and slicing in a pandas Series: label or position?

Use a label to reach a value by name and a position to reach it by place. In a slice, the label form includes the end and the position form leaves it out. That one sentence answers Question 1 of the 2026-27 sample paper.

***Five ways to select**swimming laps*

```
import pandas as pd

laps = pd.Series([24, 18, 30, 15, 21, 27],
                 index=["Asma", "Bina", "Chet",
                        "Dolly", "Eknath", "Firoz"])

print(laps["Chet"])                # one label, one value
print(laps[["Firoz", "Asma"]])     # list of labels
print(laps["Bina":"Dolly"])        # label slice
print(laps[1:3])                   # position slice
print(laps[laps > 23])             # condition
```

***Output**pandas 2.3*

```
30
Firoz    27
Asma     24
dtype: int64
Bina     18
Chet     30
Dolly    15
dtype: int64
Bina    18
Chet    30
dtype: int64
Asma     24
Chet     30
Firoz    27
dtype: int64
```

One label gives a plain value. Every other line gives a smaller Series, still carrying its labels.

The same six swimmers, with more expressions. The last column is what pandas returned.

| Expression | Reads as | Values |
| --- | --- | --- |
| `laps.loc["Bina":"Dolly"]` | labels, both ends in | 18, 30, 15 |
| `laps.iloc[1:3]` | positions 1 and 2 | 18, 30 |
| `laps[-2:]` | last two positions | 21, 27 |
| `laps[::2]` | every second value | 24, 30, 21 |
| `laps[::-1]` | backwards | 27, 21, 15, 30, 18, 24 |
| `laps[(laps > 20) & (laps < 28)]` | two conditions, each in brackets | 24, 21, 27 |
| `laps["Zubin"]` | a label that is not there | KeyError |
| `laps.iloc[9]` | a position that is not there | IndexError |

### head() and tail()

head(n) returns the first n elements and tail(n) the last n. If n is left out, it is 5.

| On laps | Elements returned | Why |
| --- | --- | --- |
| `laps.head()` | Asma to Eknath, five | Default n is 5 |
| `laps.head(2)` | Asma, Bina | First two |
| `laps.tail(2)` | Eknath, Firoz | Last two, not reversed |
| `laps.head(-2)` | Asma to Dolly, four | All but the last two |
| `laps.tail(-4)` | Eknath, Firoz | All but the first four |
| `laps.head(20)` | all six | Asking for too many is not an error |

***Changing, adding, slicing to assign**same bracket*

```
import pandas as pd

laps = pd.Series([24, 18, 30, 15],
                 index=["Asma", "Bina", "Chet", "Dolly"])

laps["Bina"] = 20             # label exists: change
laps["Gita"] = 12             # label is new: add
laps["Chet":"Dolly"] = 0      # change a slice
print(laps)
```

***Output**pandas 2.3*

```
Asma     24
Bina     20
Chet      0
Dolly     0
Gita     12
dtype: int64
```

Reading an unknown label is a KeyError. Assigning to one adds it.

***The trap: whole number labels**read slowly*

```
import pandas as pd

roll = pd.Series([88, 74, 91, 60], index=[2, 4, 6, 8])

print(roll[2])          # label 2
print(roll[0:2])        # positions 0 and 1
print(roll.loc[2:6])    # labels 2 to 6
print(roll.iloc[0])     # position 0
```

***Output**pandas 2.3*

```
88
2    88
4    74
dtype: int64
2    88
4    74
6    91
dtype: int64
88
```

A single number in the bracket is a label here, but a slice of numbers counts positions. `loc` always means labels and `iloc` always means positions, so use them when labels are numbers.

**Text labels and s[0].** With labels a, b, c, `s[0]` still gives the first value on pandas 2.3, along with a FutureWarning. On pandas 3 it is a KeyError. Write `s.iloc[0]` or the label and your answer is right on both.

Topic 3. Arithmetic

## Mathematical operations on Series: why does the answer have NaN?

An operation between two Series matches values by label. If a label is present in only one of them, the result for that label is NaN. An operation with a single number is applied to every value.

***Two Series with different labels**savings*

```
import pandas as pd

jan = pd.Series([150, 90, 200], index=["Ila", "Jay", "Kavi"])
feb = pd.Series([60, 110, 75], index=["Jay", "Kavi", "Lata"])

print(jan + feb)
print(jan.sub(feb, fill_value=0))
```

***Output**pandas 2.3*

```
Ila       NaN
Jay     150.0
Kavi    310.0
Lata      NaN
dtype: float64
Ila     150.0
Jay      30.0
Kavi     90.0
Lata    -75.0
dtype: float64
```

sub() with `fill_value=0` treats a missing partner as 0, so Lata is 0 - 75.

### Work jan + feb by hand

| Step: every label once | jan | feb | jan + feb |
| --- | --- | --- | --- |
| Ila | 150 | missing | NaN, no partner |
| Jay | 90 | 60 | 150.0 |
| Kavi | 200 | 110 | 310.0 |
| Lata | missing | 75 | NaN, no partner |

List all the labels, fill the two middle columns, and only then add. Write `150.0`, not 150, because a Series holding NaN is float64. The labels come out in sorted order when the two indexes are not the same.

***One number against a Series**heights*

```
import pandas as pd

cm = pd.Series([152, 167, 140], index=["Om", "Pia", "Raj"])

print(cm / 100)           # every value, a float result
print(cm // 30)           # whole number division
print(cm >= 150)          # True or False for each label
```

***Output**pandas 2.3*

```
Om     1.52
Pia    1.67
Raj    1.40
dtype: float64
Om     5
Pia    5
Raj    4
dtype: int64
Om      True
Pia     True
Raj    False
dtype: bool
```

A comparison gives True or False for each label. Put it inside the bracket and it becomes a filter: `cm[cm >= 150]`.

### Operators and methods

`+`, `-`, `*`, `/` have partners `add()`, `sub()`, `mul()`, `div()`. Use the method when you need `fill_value`.

### Division by zero

No error. 6 divided by 0 is `inf`, and 0 divided by 0 is NaN.

### Series and a list

A list has no labels, so it is added by position. If the lengths differ you get a ValueError, not NaN.

Topic 4. Cover the answers

## Class 12 IP pandas Series questions: 15 outputs to predict

For each one, write the output on paper with labels, values and dtype, then open the answer. Assume pandas is imported as pd and numpy as np.

1. ```
  s = pd.Series([6, 8, 10])
  print(s * 2)
  ```

  Output and reason

  ```
  0    12
  1    16
  2    20
  dtype: int64
  ```

  A number times a Series works on each value. The default labels 0, 1, 2 stay.
2. ```
  s = pd.Series(["om", "dev"], index=[1, 2])
  print(s * 2)
  ```

  Output and reason

  ```
  1      omom
  2    devdev
  dtype: object
  ```

  Text times 2 repeats the text. The dtype of strings is object.
3. ```
  s = pd.Series({"p": 4, "q": 9}, index=["q", "r"])
  print(s)
  ```

  Output and reason

  ```
  q    9.0
  r    NaN
  dtype: float64
  ```

  The index list decides which keys are used and in what order. r is not a key, so it is NaN, and 9 turns into 9.0.
4. ```
  s = pd.Series([11, 22, 33, 44, 55, 66])
  print(list(s.head()), list(s.tail(2)))
  ```

  Output and reason

  ```
  [11, 22, 33, 44, 55] [55, 66]
  ```

  head() with nothing in the bracket gives five. tail(2) gives the last two, in their original order.
5. ```
  s = pd.Series([11, 22, 33, 44], index=list("wxyz"))
  print(list(s["x":"z"]), list(s[1:3]))
  ```

  Output and reason

  ```
  [22, 33, 44] [22, 33]
  ```

  The label slice keeps z. The position slice stops before 3.
6. ```
  a = pd.Series([1, 2], index=["m", "n"])
  b = pd.Series([5, 6], index=["n", "m"])
  print(a + b)
  ```

  Output and reason

  ```
  m    7
  n    7
  dtype: int64
  ```

  m is 1 + 6 and n is 2 + 5. Values meet by label, not by place. No label is missing, so the answer stays int64.
7. ```
  s = pd.Series([5, 15, 25])
  print(s > 10)
  ```

  Output and reason

  ```
  0    False
  1     True
  2     True
  dtype: bool
  ```

  A comparison returns a Series of True and False, of dtype bool. It does not filter by itself.
8. ```
  s = pd.Series([40, 50, 60, 70])
  print(list(s[::-1]), list(s[-2:]))
  ```

  Output and reason

  ```
  [70, 60, 50, 40] [60, 70]
  ```

  A step of -1 walks backwards. A slice starting at -2 begins two places from the end.

1. ```
  s = pd.Series([2, 3, 4], index=["a", "b", "c"])
  s["b"] = 30
  s["d"] = 5
  print(s.size, s["b"] + s["d"])
  ```

  Output and reason

  ```
  4 35
  ```

  b existed and was changed; d did not and was added. So the size is 4, and 30 + 5 is 35.
2. ```
  s = pd.Series([7, None, 9])
  print(s)
  ```

  Output and reason

  ```
  0    7.0
  1    NaN
  2    9.0
  dtype: float64
  ```

  None becomes NaN. NaN is a float, so the whole Series is float64.
3. ```
  x = [3, 4]
  y = pd.Series(x)
  print(x * 2)
  print(list(y * 2))
  ```

  Output and reason

  ```
  [3, 4, 3, 4]
  [6, 8]
  ```

  A list is repeated, a Series is multiplied. This is the shortest way to show the difference between the two.
4. ```
  s = pd.Series(np.arange(10, 50, 10), index=[5, 6, 7, 8])
  print(s[6], list(s[1:3]))
  ```

  Output and reason

  ```
  20 [20, 30]
  ```

  arange gives 10, 20, 30, 40. With whole number labels, s[6] is a label, yet the slice 1:3 counts positions.
5. ```
  s = pd.Series([12, 7, 20, 3], index=list("abcd"))
  print(list(s[s % 2 == 0].index))
  ```

  Output and reason

  ```
  ['a', 'c']
  ```

  The condition is True for 12 and 20. The index of what is left is a and c.
6. ```
  s = pd.Series([9, 4, 6])
  print((s ** 2)[1:])
  ```

  Output and reason

  ```
  1    16
  2    36
  dtype: int64
  ```

  Square first, then slice. The labels 1 and 2 travel with their values.
7. ```
  s = pd.Series([10, 20, 30, 40])
  s[1:3] = 0
  print(list(s), s.head(-1).size)
  ```

  Output and reason

  ```
  [10, 0, 0, 40] 3
  ```

  Assigning to a slice changes the Series itself. head(-1) means all except the last one, which is three.

**Should the dtype line be written?** The official scheme for Question 30 (A) (ii) shows the three labels and values and no dtype line. Writing it does no harm if it is right, and it trains you to notice when int has become float.

Topic 5. Blank page

## Series programs for Class 12 IP, with a trap in each

A Series program is short: import pandas, create the Series, do one operation, print. The marks sit in the detail, so each of these four carries one detail that is easy to miss.

### 1. Ten per cent off everything above a limit

***Program 1**a function*

```
import pandas as pd

def bill_after_offer(price, limit):
    """Return a Series with 10% off above the limit."""
    price[price > limit] = price * 0.9
    return price

spice = pd.Series({"Haldi": 28.0, "Jeera": 62.0,
                   "Saunf": 45.0, "Elaichi": 310.0})
print(bill_after_offer(spice, 50))
```

***Output**pandas 2.3*

```
Haldi       28.0
Jeera       55.8
Saunf       45.0
Elaichi    279.0
dtype: float64
```

The condition chooses the labels to change, and alignment picks the matching new values. The prices are typed as decimals, since 55.8 does not fit in an int64 Series.

### 2. Stock left after a sale

***Program 2**fill_value*

```
import pandas as pd

stock = pd.Series({"Bat": 14, "Ball": 60, "Net": 5})
sold = pd.Series({"Ball": 48, "Bat": 6})

left = stock.sub(sold, fill_value=0)   # Net was not sold
print(left)
print("Order again:", list(left[left < 10].index))
```

***Output**pandas 2.3*

```
Ball    12.0
Bat      8.0
Net      5.0
dtype: float64
Order again: ['Bat', 'Net']
```

With a plain minus sign Net would be NaN, and NaN < 10 is False, so the item would vanish from the list.

### 3. Units used between meter readings

***First try**looks right, is wrong*

```
import pandas as pd

meter = pd.Series([1204, 1260, 1331, 1420],
                  index=["Apr", "May", "Jun", "Jul"])

print(meter[1:] - meter[:-1])
```

***Output**pandas 2.3*

```
Apr    NaN
Jul    NaN
Jun    0.0
May    0.0
dtype: float64
```

May is matched with May and June with June, so they cancel.

***Program 3**labels removed*

```
import pandas as pd

meter = pd.Series([1204, 1260, 1331, 1420],
                  index=["Apr", "May", "Jun", "Jul"])

later = meter[1:]                  # May, Jun, Jul
earlier = meter[:-1].values        # array, no labels
print(later - earlier)             # by position now
```

***Output**pandas 2.3*

```
May    56
Jun    71
Jul    89
dtype: int64
```

`.values` is an ndarray without labels, so subtraction goes by position.

### 4. Total marks when the lists are in a different order

***Program 4**alignment helps*

```
import pandas as pd

theory = pd.Series([48, 61, 22], index=["Zoya", "Udit", "Tara"])
practical = pd.Series([27, 24, 29],
                      index=["Udit", "Tara", "Zoya"])

total = theory + practical
print(total)
print("Above 60:")
print(total[total > 60])
```

***Output**pandas 2.3*

```
Tara    46
Udit    88
Zoya    77
dtype: int64
Above 60:
Udit    88
Zoya    77
dtype: int64
```

Zoya is 48 + 29 although she is first in one Series and last in the other.

### Find four errors (two marks)

***With errors**wrong on purpose*

```
import Pandas as pd
kg = pd.series([3, 5, 7], index=["x", "y"])
kg["w"] = 9
print(kg.head[2])
print(kg["x":"y"] * 2)
```

Corrections`pandas` in small letters; `pd.Series` with a capital S; a third label, such as "z", for the third value; `kg.head(2)` with round brackets. The other two lines are correct. The last one then prints x 6 and y 10.

### How three marks are split

In the 2026-27 scheme, Question 30 (A) gives 2 marks for creating a Series from a dictionary and 1 mark for the output of adding two Series. The question asks for a particular name for the Series, so use the name given.

### Short answers

1. What happens to the labels when a Series is made from a dictionary? Answer The keys become the index, in the order they were written.
2. Give the statement to show the last three values of a Series named Fare. Answer`print(Fare.tail(3))` or `print(Fare[-3:])`
3. Is a Series value mutable? Is its size? Answer Values can be changed in place, as in `s["b"] = 30`. Assigning to a new label adds an element, so the size can grow as well.
4. **Assertion:**`s["b":"d"]` and `s[1:3]` give the same result when the labels are a to e. **Reason:** A slice by label includes its last label. Answer A is false, R is true. The first gives three values and the second gives two.
5. Write one statement that makes a Series of four zeros labelled 101 to 104. Answer`pd.Series(0, index=[101, 102, 103, 104])`
6. Display only those values of Temp that are below 15. Answer`print(Temp[Temp < 15])`

Elements above the 75th percentile, which the suggested practical list asks for, are solved in [the IP practical file](/cbse-class-12-informatics-practices-practical-file).

### Draw two columns

In class the student draws each Series as two columns before touching the keyboard. Alignment questions then answer themselves.

### Say "label" or "place"

Every bracket is read aloud with one of these two words. It is the quickest cure for slicing mistakes.

### Predict, run, explain

An output is written first. If pandas disagrees, the student says why before we move on.

A DataFrame is a set of Series side by side, so the next page is [DataFrame for Class 12 IP](/cbse-class-12-informatics-practices-dataframe), and [Matplotlib charts](/cbse-class-12-informatics-practices-matplotlib-charts) come after it. To test yourself use the [IP MCQ test](/cbse-class-12-informatics-practices-mcq-test) and the [important questions](/cbse-class-12-informatics-practices-important-questions); to speak the answers, the [IP viva questions](/cbse-class-12-informatics-practices-viva-questions).

One to one, at your own timing

## Learn pandas with a teacher reading every line you type

Series is a chapter where a wrong answer looks exactly like a right one until somebody asks which label it came from. In a personalised one to one class somebody does ask. The days and the hour are yours to set. Begin with the priority demo, a paid full class whose fee comes off the first month if you enrol, or with a free demo class. Fees are monthly, admission costs nothing extra, and any month end can be your last.

Before you enrol · Try a class

### Priority demo, at a slot you pick

a full live class of about 45 to 60 minutes

- You create one Series in three ways and explain the index each time
- Two Series are added on paper, then checked in pandas
- Five output questions are timed and marked as you watch
- The written skill report names the slicing or NaN points to repair

[Book a priority demo](/book-demo)

The classes · Choose your own timing

### Personalised one to one

₹4,999

per month, 4 private classes, fully flexible timing

- Series first, then DataFrame, at the speed you can explain it
- Class 11 lists and dictionaries revised when they get in the way
- Your own school worksheets used for the output practice
- Help in setting up pandas on your laptop during class

Ask for a personalised plan

If your school has already finished pandas, one class on mixed outputs shows whether Series needs a full return or only a tidy-up. The monthly fee appears on this page in the currency you use.

Studying outside India?

## pandas classes for CBSE students outside India

A student in Muscat or Singapore prepares the same Unit 1 for 065. Fix the hour after your own school day and it stays yours.

| Where you live | Time difference | Usual class window, local time | Format |
| --- | --- | --- | --- |
| India every Indian city | Indian time | Any time you choose | Personalised 1-on-1 |
| UAE and Oman Dubai, Abu Dhabi, Sharjah, Muscat | 1 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Saudi Arabia, Qatar, Kuwait, Bahrain Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama | 2 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Nepal Kathmandu | 15 min ahead of India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Ethiopia and East Africa Addis Ababa and East Africa Time | 2 h 30 min behind India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Singapore and Malaysia Singapore, Kuala Lumpur | 2 h 30 min ahead of India | 3:30 PM to 9:00 PM | Personalised 1-on-1 |

Any laptop that runs Python will do. If pandas will not install on it, tell us when you book and we begin there.

What families say

## Rated 4.9 across 547 Google reviews

Real reviews from real families. We neither write nor commission them.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

The rest of the Class 12 series

## More pages for Class 12 students

Every page in the CBSE Class 12 Informatics Practices series, grouped by what you need.

### Practicals, project and viva

- [Class 12 IP practical file](/cbse-class-12-informatics-practices-practical-file)
- [Class 12 IP project with source code](/cbse-class-12-informatics-practices-project)
- [Class 12 IP project topics](/cbse-class-12-informatics-practices-project-topics)
- [Class 12 IP viva questions](/cbse-class-12-informatics-practices-viva-questions)

### Exam, papers and marks

- [Class 12 IP sample paper practice](/cbse-class-12-informatics-practices-sample-paper-2026-27)
- [Class 12 IP syllabus and pattern](/cbse-class-12-informatics-practices-syllabus-and-paper-pattern)
- [Class 12 IP important questions](/cbse-class-12-informatics-practices-important-questions)

### Questions and practice

- [Class 12 IP MCQ test](/cbse-class-12-informatics-practices-mcq-test)
- [Class 12 IP SQL questions](/cbse-class-12-informatics-practices-sql-questions)

### Chapter by chapter

- [DataFrame Class 12 IP](/cbse-class-12-informatics-practices-dataframe)
- [Matplotlib and charts Class 12 IP](/cbse-class-12-informatics-practices-matplotlib-charts)
- [Computer networks Class 12 IP](/cbse-class-12-informatics-practices-computer-networks)
- [Societal impacts Class 12 IP](/cbse-class-12-informatics-practices-societal-impacts)

### Revision and help

- [Class 12 IP crash course](/cbse-class-12-informatics-practices-crash-course)

**CBSE Class 12 Computer Science (083):** [Class 12 CS viva questions](/cbse-class-12-computer-science-viva-questions)  [Class 12 CS sample paper practice](/cbse-class-12-computer-science-sample-paper-2026-27)  [Class 12 CS project with source code](/cbse-class-12-computer-science-project-python-mysql)  [Class 12 CS important questions](/cbse-class-12-computer-science-important-questions)

**CBSE Class 12 Information Technology (802):** [IT 802 practical and project file](/cbse-class-12-it-802-practical-and-project-file)  [IT 802 Java notes and programs](/cbse-class-12-it-802-java-programs)  [IT 802 notes](/cbse-class-12-it-802-notes)

**CBSE Class 11 CS, IP and AI:** [Class 11 CS practical file](/cbse-class-11-computer-science-practical-file)  [Class 11 IP practical file](/cbse-class-11-informatics-practices-practical-file)  [CS or IP in Class 11](/computer-science-or-informatics-practices-class-11)

**ISC Computer Science (868):** [ISC Class 12 CS syllabus 2027](/isc-class-12-computer-science-syllabus-2027)  [ISC Class 12 CS practice paper](/isc-class-12-computer-science-specimen-paper-practice)  [ISC Class 12 practical questions solved](/isc-class-12-computer-science-practical-questions)  [ISC Boolean algebra and K-maps](/isc-class-12-computer-science-boolean-algebra)

**Program lists with output:** [Class 12 practical file programs](/blog/python-practical-file-class-12)  [Python programs for Class 11 CS and IP](/blog/python-programs-for-class-11)

Questions about Series

## Pandas Series Class 12: questions students ask

### What is a Series in pandas for Class 12 IP?

A Series is a one-dimensional labelled array in the pandas library. It holds values of one data type, such as whole numbers, decimals or strings, and gives each value a label called its index. It is the first of the two pandas data structures in the CBSE 065 syllabus. The other is the DataFrame, which has rows and columns.

### How do you create a Series in pandas?

Import pandas and call pd.Series(data, index). The data can be an ndarray, a dictionary or a scalar value, which are the three named in the 2026-27 syllabus, or a list. If you give no index, labels start from 0. For a dictionary the keys become the labels, and for a scalar the value repeats for every label.

### What is the difference between a Series and a DataFrame?

A Series is one-dimensional: one column of values with one index. A DataFrame is two-dimensional: rows and columns, with labels for both. Each column of a DataFrame is a Series, which is why selecting a single column prints an index, the values, a name and a dtype.

### What is the difference between label and positional indexing in a Series?

Label indexing uses the index value you see printed on the left, for example s["Chet"]. Positional indexing counts places from 0, for example s.iloc[2]. A label slice includes both ends, while a positional slice leaves the stop position out. With whole number labels, s[2] means the label 2, so use loc and iloc to be safe.

### Why do I get NaN when I add two Series?

pandas adds values that have the same label. When a label exists in only one Series there is nothing to add, so the result is NaN. To treat the missing value as zero, use s1.add(s2, fill_value=0). Whole numbers also turn into decimals in the result, because NaN can only be stored in a float Series.

### What do head() and tail() return in a Series?

head(n) returns the first n elements as a Series and tail(n) the last n. Without a number both use 5. If the Series is shorter than n you simply get all of it. A negative number means all but that many, so head(-1) leaves out the last element.

### How many marks does the Series topic carry in Class 12 IP?

CBSE gives 25 marks to the unit on pandas and data visualization together and no separate mark for Series. In the 2026-27 sample paper, Questions 1, 8 and 12 are on Series for one mark each, and Question 30 offers a three-mark Series part as a choice against a DataFrame part.

### Is a pandas Series mutable?

Its values are. s["b"] = 30 replaces a value, and s["b":"c"] = 0 replaces a slice. You can also add an element by assigning to a label that does not exist yet. Some school notes call a Series size-immutable. pandas itself does let a new label add an element, as the laps program on this page shows.

### What is the dtype of a Series containing strings?

On pandas 2, which most school labs still use, it prints as object. pandas 3 prints str for the same data. Whole numbers show int64, decimals float64, and True or False shows bool. If a numeric Series has a missing value, expect float64.

### Are iloc and loc in the Class 12 IP syllabus for Series?

The 065 document lists selection, indexing and slicing for Series without naming loc or iloc. They are worth knowing, because they state clearly whether you mean a label or a position. The plain bracket also works, and official answers for Series use it.

### Can I get one to one help with pandas for Class 12 IP?

Yes. Modern Age Coders teaches pandas live and one to one, at a day and hour you choose, with the student writing and running the code. You may try a priority demo of about 45 to 60 minutes, followed by a written skill report, and its fee is adjusted in the first month if you enrol. A free demo class is also offered.

Start

## Bring one Series you cannot predict

In the free demo class, show us a question you got wrong. We draw its index, run it, and change one label to see what moves.

The **priority demo** goes the full length, at a slot that you pick: creation, slicing and addition from a blank file, five timed outputs, and a skill report sent to you in writing. If you join, its fee is taken off the first month.

Need the marks of the whole subject first? See [the IP syllabus and paper pattern](/cbse-class-12-informatics-practices-syllabus-and-paper-pattern).

[WhatsApp us](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders.%20I%20want%20one%20to%20one%20classes%20on%20pandas%20Series%20for%20CBSE%20Class%2012%20Informatics%20Practices%20065.) · [+91 91233 66161](tel:+919123366161) · [connect@modernagecoders.com](mailto:connect@modernagecoders.com)

Every class is live video. The form requests a callback and reserves nothing.

### Want it sooner? Book a priority demo

A full live class of about 45 to 60 minutes at a slot you pick, with a written skill report and learning roadmap on WhatsApp afterwards. The fee is adjusted against your first month if you enrol.

[Book a priority demo](/book-demo)

## Keep exploring Modern Age Coders

### By class and age

- [Class 12 Computer Science Syllabus 2026-27 (083) Explained](/cbse-class-12-computer-science-syllabus-2026-27)
- [Stack Class 12 Computer Science: Push, Pop and Questions](/cbse-class-12-computer-science-stack)
- [Class 12 Computer Science SQL Questions with Output (083)](/cbse-class-12-computer-science-sql-queries)
- [Class 12 IT 802 Sample Paper with Solutions, 2026-27](/cbse-class-12-it-802-sample-paper)
- [Class 12 Computer Science Revision Plan to 31 March 2027](/cbse-class-12-computer-science-revision-plan)
- [Class 12 IT 802 Syllabus 2026-27: Units, Marks and Dates](/cbse-class-12-it-802-syllabus-2026-27)
- [Class 12 Computer Science Project Topics: Python and SQL](/cbse-class-12-computer-science-project-topics)
- [Exception Handling Class 12 Computer Science: Notes, Q&A](/cbse-class-12-computer-science-exception-handling)
- [Class 12 Computer Science Crash Course 2027: Live 1-on-1](/cbse-class-12-computer-science-crash-course)

### Learn more

- [Edexcel IGCSE Further Pure Maths 4PM1 Help and Topics](/edexcel-igcse-further-pure-maths-4pm1-help)
- [Math Library Methods ICSE: Return Types and Output Traps](/icse-class-10-math-library-methods)

### Free resources

- [AI & Machine Learning Tutorial: Basics to Deep Learning](/resources/ai-and-machine-learning)
- [Generics in Java](/resources/java/generics-in-java)
- [Large Language Models](/resources/ai-and-machine-learning/large-language-models)
- [Methods in Java](/resources/java/methods-in-java)

### From the blog

- [String Handling in Java: The ICSE and CBSE Guide](/blog/string-handling-in-java)
- [Java Constructors Explained: Types, Overloading, ICSE](/blog/java-constructors-explained)
- [20 Python Programs for CBSE Class 12 Board Exam (083)](/blog/python-programs-for-cbse-class-12)

### Start here

- [Real projects built by Modern Age Coders students](/student-labs)
- [Browse every live course at Modern Age Coders](/courses)

---

*Canonical: https://learn.modernagecoders.com/cbse-class-12-informatics-practices-pandas-series*
