Question: I am trying to write python 3.x script that fills a column (RentLevel) with Text low etc. evaluation an integer from the column MedRent. See

I am trying to write python 3.x script that fills a column (RentLevel) with Text "low" etc. evaluation an integer from the column MedRent. See table below

RentLevel = MedRent

def somework(RentLevel ):

if 0

RentLevel = "Low"

elif 700

RentLevel = "Med"

elif RentLevel > 1000:

RentLevel = "High"

else:

RentLevel = "Unknown"

return RentLevel

I am trying to write python 3.x script that fills a column

1 Field: Add Calculate Selection: Select By Attributes Zoom To Switch Clear Delete copy FID Shape* ObjectID FIPS MedRent MrgErr Shape_Leng Shape_Area RentLevel 0 Polygon 34663 17031720300 -9999 0 16508.243105 13619192.1655 Polygon 34666 17031730600 709 47 13761.119543 10861688.2995 2 Polygon 34667 17031720400 1014 597 10700.841596 7182552.12429 3 Polygon 34668 17031740200 -9999 0 21332.673578 21251227.5314 4 Polygon 34671 17031720500 895 150 14024.282383 11275679.4548 5 Polygon 34672 17031740100 807 227 17934.648606 9565825.64026 6 Polygon 34673 17031730700 859 1657 13419.725704 10584317.5255 7 Polygon 34674 17031720700 843 63 13896.649842 11225132.1578 8 Polygon 34675 17031720600 678 1730 10040.915236 6266412.98171 9 Polygon 34679 17031750100 1008 246 15583.269432 13793932.5965 10 Polygon 34680 17031750200 822 113 17135.509123 14122397.1616 11 Polygon 34681 17031750300 947 204 10692.941356 7134861.42549 12 Polygon 34683 17031740300 866 464 16044.776219 14293043.0877 13 Polygon 34684 17031750500 899 111 23753.526942 28211803.4826

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!