Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 [ ]: 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started