- A+

Category：Languages

I have a dataframe with the following column:

`A + + - + - `

How do I convert this column into integer values. So that I could multiply it to other numerical values?

You can use:

`df.A = df.A.map({'+': 1, '-': -1}) `

- A+

Category：Languages

I have a dataframe with the following column:

`A + + - + - `

How do I convert this column into integer values. So that I could multiply it to other numerical values?

You can use:

`df.A = df.A.map({'+': 1, '-': -1}) `