Code Python Using Dataset Employee Earnings Boston Https Databostongov Dataset Employee Ea Q37029265

I am doing a code in python, using the datasetfrom  Employee Earnings in Bostonhttps://data.boston.gov/dataset/employee-earnings-report/resource/31358fd1-849a-48e0-8285-e813f6efbdf1.I am using the columns Zip Code and Total Earnings. I am trying toaccomplish the Decision Trees Regression algorithm but I’m gettingthis error

In [92]: 1 df top- df.head (1000) df top . lloc [ : , 2] . sort-values() 3 4 x y=df top.iloc [ : ,3].sort-values() = 6 x=x.as

In [92]: 1 df top- df.head (1000) df top . lloc [ : , 2] . sort-values() 3 4 x y=df top.iloc [ : ,3].sort-values() = 6 x=x.astype (float) 7 y -y.astype(int) 8 10 X=

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.