Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions