I have a table with a column named 'Amount'. The cell values are mixture of numbers such as 1, 100, and 1000, and strings such as '(1000)' and '(999)' which indicates a negative value. How would I change the strings of negative values to numbers, like -1000 and -999? I don't know how to apply conditions on panda dataframes.
import pandas as pd
ws_actual = pd.read_excel(file_name, sheet_name=0)
Project Name Amount
a 1000.53
b (-100.2)
c 999.83
d 99999.1
e 333.62
f (-10502.30)
g (-2036.63)
h 25235
i 69103
j 5923
k 6920