Welcome to the Simplilearn Community

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

Sign Up

Nirendu Konar Feb 20,21,27,28 Mar 6,7,13,14,20,21,27 Data Science with Python

hello nirendu sir / what about today online class? is it postponed for today? I am trying since 7.30 PM, please help me? H ow to connect anybody if any problem?
 
sir is there any contact no. to resolve any type of technical problem?because i have lost todays class if it was happend today ? Please confirm sir and please give provide me a phone no or call me on 7247727871.
 

nkonar

Member
Hi I've uploaded few data files to the drive for this week's class. Plz, check. and
have them downloaded in your laptop for practice;
 

Rajat Sharma_10

Customer
Customer
Hello Nirendu/Suraj,

Can't find the class recording for March 6th. Can you please help check if the recording is available?

Thanks,
Rajat
 

nkonar

Member
Hi Pooja and all learners,

Please find the SalesAnalysis and loan_payment notebook in the drive.

In loan_payment, I've used apply and lambda expression in the last solution.
I'll discuss them in our next session.

Next session we'll review some of the concepts of Numpy and Pandas and introduce
few advanced data analysis functions. Please review what we have covered so far
to utilize the session to the fullest.
 

nkonar

Member
Hello all,

Not finding any regression results here in the forum? Please post
how much RMSE you have got for the dataset.

Thanks
 

Rajat Sharma_10

Customer
Customer
Hello Nirendu,

I am observing this value error while executing the code for HR Attrition that we covered during the class, can you please advise what am I missing here.

Thanks,
Rajat

Code:
df['Loyal_Emp'] = 'Yes'
#df.head(5)

df.loc[df['YearsAtCompany'] < 7, ['Loyal_Emp']] = ['No']
df.head(5)

Error:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-35-08c4b85abb22> in <module>
2 #df.head(5)
3
----> 4 df.loc[df['YearsAtCompany'] < 7, ['Loyal_Emp']] = ['No']
5 df.head(5)

~\anaconda3\lib\site-packages\pandas\core\indexing.py in __setitem__(self, key, value)
668
669 iloc = self if self.name == "iloc" else self.obj.iloc
--> 670 iloc._setitem_with_indexer(indexer, value)
671
672 def _validate_key(self, key, axis: int):

~\anaconda3\lib\site-packages\pandas\core\indexing.py in _setitem_with_indexer(self, indexer, value)
1664 if is_list_like_indexer(value) and 0 != lplane_indexer != len(value):
1665 # Exclude zero-len for e.g. boolean masking that is all-false
-> 1666 raise ValueError(
1667 "cannot set using a multi-index "
1668 "selection indexer with a different "

ValueError: cannot set using a multi-index selection indexer with a different length than the value
 

nkonar

Member
Hi Rajat,

Your code is okay, couldn't replicate the error. Make sure you are
reading the correct .csv file with the following statement before:
df = pd.read_csv('EDA - HR-Employee-Attrition.csv')

Thanks
 

Rajat Sharma_10

Customer
Customer
Hi Rajat,

Your code is okay, couldn't replicate the error. Make sure you are
reading the correct .csv file with the following statement before:
df = pd.read_csv('EDA - HR-Employee-Attrition.csv')

Thanks
Hi Nirendu,

CSV was fine, the error got resolved by removing [ ] from 'No'.
Code that worked:
df.loc[df['YearsAtCompany'] < 7, ['Loyal_Emp']] = 'No'

Thanks,
Rajat
 

nkonar

Member
All,

Plz download few files I've uploaded today -- duration, titanic, drinkdbycountry and Germancredit;
We will use them in the session today.
 

_86705

New Member
Dear Nirendu Konar,

can you upload files (Python files) of 21st March class?
Anova test,
Plot exercises?
Please share link here as an reply

thank you
Anil Biradar
 
Top