Welcome to the Simplilearn Community

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

Sign Up

Data science with Python( Dec 5th - Jan 23,2021)|Wajahat

mdwajtech

Well-Known Member
Hi Learners,
Please find the notebook attached for Movie Lens Dataset.
Action Items for Next week is:
For Learners who are finding it difficult to understand Python Please go through the Python for DS course.
For Learners who are finding difficulty in understanding the Stats concepts please go through the Statistics for DS
For All others:
Please go through the Self Learning Module.
Try to explore more about the Topics we have studied over the web
Kindly do the submission of your notebook on the drive above with you assignments till EDA part of Movie Lens Dataset

In case of any concern please reach out to us here anytime.

Thanks
 

Attachments

  • MovieLensDataset.pdf
    26.8 KB · Views: 50
Mr Wajhat my query was every time I was clicking from the movie assignment and it taking me to the next interface where you told me to down load the file by clicking SimplearnEdu icon over there but it was showing me the assignment from 2019 . so thats where i got lost.
Please help me in sorting out this problem so that i can get along with the assignment i have already lost good bit of it while you guys where going through the assignment
 
with this snippet of code i'm trying to create a list of lists to make columns for one hot encoding for the project:
genre_list_clean is a list of all the genres singled out with any |

genre_encoding_list = [[]]*len(genre_list_clean)
for i in range(len(genre_list_clean)):
for k in df_master_data['Genres']:
if str(df_master_data['Genres'][k]).find(genre_list_clean) != -1:
genre_encoding_list.append(1)
else:
genre_encoding_list.append(0)
genre_encoding_list

whenever i try to run this it gives me a keyerror

KeyError Traceback (most recent call last)
<ipython-input-33-96bf1da3442b> in <module>
2 for i in range(len(genre_list_clean)):
3 for k in df_master_data['Genres']:
----> 4if str(df_master_data['Genres'][k]).contains(genre_list_clean) != -1:
5 genre_encoding_list.append(1)
6 else:

C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\series.py in __getitem__(self, key)
869 key = com.apply_if_callable(key, self)
870 try:
--> 871result = self.index.get_value(self, key)
872
873 if not is_scalar(result):

C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_value(self, series, key)
4403 k = self._convert_scalar_indexer(k, kind="getitem")
4404 try:
-> 4405return self._engine.get_value(s, k, tz=getattr(series.dtype, "tz", None))
4406 except KeyError as e1:
4407 if len(self) > 0 and (self.holds_integer() or self.is_boolean()):

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_value()

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_value()

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas\_libs\index_class_helper.pxi in pandas._libs.index.Int64Engine._check_type()

KeyError: "Animation|Children's|Comedy"
 
Mr Wajhat my query was every time I was clicking from the movie assignment and it taking me to the next interface where you told me to down load the file by clicking SimplearnEdu icon over there but it was showing me the assignment from 2019 . so thats where i got lost.
Please help me in sorting out this problem so that i can get along with the assignment i have already lost good bit of it while you guys where going through the assignment
I am also getting the same problem. I was able to download only one file.
GDP of Countries
 

Attachments

  • Vivek GDP assignment.pdf
    88.9 KB · Views: 5

_83977

Member
Assignment 01 : GDP related assignment,

Please go through the assignment and let me know if i have missed anything.

Sathishkumar.
 

Attachments

  • GDP.txt
    8.7 KB · Views: 2

_79857

New Member
Assignments completed
 

Attachments

  • Assignment1-Vijay.pdf
    28.1 KB · Views: 2
  • Assignment2-Vijay.pdf
    26.7 KB · Views: 1

_78828

Member
Assignment completed
 

Attachments

  • GDPAssignment1-Shanmugakumar.pdf
    28.2 KB · Views: 0
  • OlyMedal_assignment2_Shanmugakumar.pdf
    21.7 KB · Views: 0
Hi Sir,

PFA the solution for the 2 assignments in Pandas
 

Attachments

  • Hiresh - solution_Assignment-1 FAA dataset.pdf
    63.8 KB · Views: 1
  • Hiresh- solution_Assignment -2 FDNY Dataset.pdf
    48.2 KB · Views: 2

_85298

Member
Please find the solutions for the Pandas assignments.
 

Attachments

  • Assignement_01_faa_ai.pdf
    33.1 KB · Views: 1
  • Assignement_02_FDNY.pdf
    20.8 KB · Views: 4

_78828

Member
Assignment completed
 

Attachments

  • FAAassignment_Shanmugakumar.pdf
    42.3 KB · Views: 0
  • FDNYassignment_Shanmugakumar.pdf
    21.6 KB · Views: 0
[
with this snippet of code i'm trying to create a list of lists to make columns for one hot encoding for the project:
genre_list_clean is a list of all the genres singled out with any |

genre_encoding_list = [[]]*len(genre_list_clean)
for i in range(len(genre_list_clean)):
for k in df_master_data['Genres']:
if str(df_master_data['Genres'][k]).find(genre_list_clean) != -1:
genre_encoding_list.append(1)
else:
genre_encoding_list.append(0)
genre_encoding_list

whenever i try to run this it gives me a keyerror

KeyError Traceback (most recent call last)
<ipython-input-33-96bf1da3442b> in <module>
2 for i in range(len(genre_list_clean)):
3 for k in df_master_data['Genres']:
----> 4if str(df_master_data['Genres'][k]).contains(genre_list_clean) != -1:
5 genre_encoding_list.append(1)
6 else:

C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\series.py in __getitem__(self, key)
869 key = com.apply_if_callable(key, self)
870 try:
--> 871result = self.index.get_value(self, key)
872
873 if not is_scalar(result):

C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_value(self, series, key)
4403 k = self._convert_scalar_indexer(k, kind="getitem")
4404 try:
-> 4405return self._engine.get_value(s, k, tz=getattr(series.dtype, "tz", None))
4406 except KeyError as e1:
4407 if len(self) > 0 and (self.holds_integer() or self.is_boolean()):

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_value()

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_value()

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas\_libs\index_class_helper.pxi in pandas._libs.index.Int64Engine._check_type()

KeyError: "Animation|Children's|Comedy"

I've uploaded my entire project what i have so far incase it helps
 

Attachments

  • Project 2 - Movielens Case Sudy.pdf
    165.9 KB · Views: 26
To Mr wajhat
here is the problem i am facing with so thats why i can not proceed further i followed the instructions which were shared. i pasting the screen shot of it for you to have a lookproblem1 related to project.png
 

Attachments

  • problem1 related to project.png
    problem1 related to project.png
    186 KB · Views: 2
  • problem related to project.png
    problem related to project.png
    116.6 KB · Views: 2

_84101

Member
Hi,
I have completed the NumPy assignments for Day 5 (Country GDP and Olympic medals).
Apologies or late submission.
 

Attachments

  • GDP_analysis.pdf
    33.8 KB · Views: 0
  • LondonOlympics.pdf
    24.6 KB · Views: 0

_84101

Member
Hi,
I have completed the Pandas assignments for Day 6 (FAA and FDNY).
Apologies or late submission.
 

Attachments

  • FAA_Assignment.pdf
    50.6 KB · Views: 1
  • FDNY.pdf
    28.3 KB · Views: 0
Hi Wajahat,

Please check the file and let me know if there are any corrections to be made.

Thank you.
 

Attachments

  • assignment_GDP_Jupyter Notebook.pdf
    192.3 KB · Views: 2
  • Countries with GDP (2).txt
    1.4 KB · Views: 1
HI GUYS
i a m having difficulties in doing this assignment as first of its always downloading in txt format and then how to work in the lab on it( for eg using numpy.
it will be highly appreciated


GDP TXT FILES CONV.jpg GDP TXT FILES CONV.jpg GDP TXT FILES CONV.jpg GDP TXT FILES CONV.jpg
 
Data visualisation Assignment 1 and 2
 

Attachments

  • auto_data_Assignment1_soln.pdf
    101.4 KB · Views: 2
  • Ohio_State_Assignment2_soln.pdf
    59 KB · Views: 2
Top