Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

Machine learning|Wajahat|Feb 22,23,24,25,26 Mar 1,2,3,4,5,8,9,10,11,12

_83385

Member
data.groupby('Year').TotalPayBenefits.mean()
data.groupby('EmployeeName').TotalPayBenefits.sum().sort_values(ascending=False)
 

Attachments

  • 2_23.pdf
    21.6 KB · Views: 1

Jayanth MK

New Member
please review it ,
my solution for linear model on boston data analysis
 

Attachments

  • LinearRegression-assignment (1).pdf
    32.2 KB · Views: 0

_83332

Member
Vinay: Assignment boston house value. Pls Check
 

Attachments

  • LinerRegression_BostonHousePredection.pdf
    41.7 KB · Views: 2
Last edited:
Can anyone share the load_boston.ipynb here?,
I don't understand why, but when I download it from the sharedrive and open it, it is empty, no code in it.
thanks for any help
 
I am not able to find the issue with the error.
error: not enough values to unpack (expected 5, got 4)

for code : x_train, x,test, y_train, y_test = train_test_split(feature_transformed,target,random_state = 10)
 

Attachments

  • day_8.pdf
    26.9 KB · Views: 5

Ankur Bhatnagar_1

Member
Alumni
I am not able to find the issue with the error.
error: not enough values to unpack (expected 5, got 4)

for code : x_train, x,test, y_train, y_test = train_test_split(feature_transformed,target,random_state = 10)
Hi, looks like you have assigned dummy variable to all cols., only the ones with object data type will need a dummy variable. Others already have values that can be used for prediction.
 

Jatin_38

Member
Hi @Wajahat Khan_1 / @wajahat.bhat ,

Question related to Lesson 3 practice. Salaries.csv.
In the data, there multiple people with same name, so how to differentiate, weather the name is referring to the same person or not?
I think data cleaning will be essential. As in the screenshots, it suggest for 'A Bernard Fatooh',

1614770728040.png

and if we apply sum on group by :

1614770802684.png

In case of Aaron cramer, there are two different persons :

1614771590911.png
 
Last edited:

mdwajtech

Active Member
Hi @Wajahat Khan_1 / @wajahat.bhat ,

Question related to Lesson 3 practice. Salaries.csv.
In the data, there multiple people with same name, so how to differentiate, weather the name is referring to the same person or not?
I think data cleaning will be essential. As in the screenshots, it suggest for 'A Bernard Fatooh',

View attachment 14423

and if we apply sum on group by :

View attachment 14424

In case of Aaron cramer, there are two different persons :

View attachment 14426
yes u can convert all the names to lower by applying .lower() on the name column
 
Top