how to fetch and store integer value inside (…) in a cell in excel to a variable using python

I’m trying to read integer values 10, 12, 2 from the second column of the excel sheet and store it to variables using python.

provided link to the png image representing cells in excel sheet

[https://i.stack.imgur.com/82por.png]

Using below code I’m able to read the entire data – Parrot(10) whereas i want integer value of 10

# Import pandas
import pandas as pd

# Load csv
df = pd.read_csv("data.csv")

abc = df['Birds'].iloc[0]

Answer

# Import pandas
import pandas as pd

# Load csv
df = pd.read_csv("data.csv")

word = df['Birds'].iloc[0]
offset = word.find("(")
num = word[offset+1:-1]

This is finding the index of the opening bracket then adding 1 to find the first number then ignoring the closing bracket but only going to -1