Question: PLZ HELP ASAP How to replace column B with following numbers 85 to 8 94 to 9 24 to 5 In [1]: import pandas as
PLZ HELP ASAP
How to replace column B with following numbers 85 to 8 94 to 9 24 to 5

In [1]: import pandas as pd import numpy as np In [8]: data={ 'A': ["GREEN", "RED", "YELLOW"], 'B':[85,94,24]} In [9]: df=pd.DataFrame (data, columns=['A', 'B']) In [10]: df Out[10]: 0 GREEN 85 1 RED 94 2 YELLOW 24 In [12]: df.dtypes Out[12]: A object B int64 dtype: object In [ ]: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
