DS-PYTHON | SEP 29 - NOV 03 | NIMISHA

Discussion in 'Big Data and Analytics' started by Nishant Singh_3, Sep 29, 2018.

  1. Nishant Singh_3

    Nishant Singh_3 Well-Known Member
    Simplilearn Support

    Joined:
    Aug 1, 2018
    Messages:
    107
    Likes Received:
    2
    Hi Learner,

    This thread is blocked for you to discuss the query and concepts related to Data Science with Python course.

    Happy Learning !!

    Regards,
    Team Simplilearn
     
    #1
    _34799 likes this.
  2. Nimisha Pandey

    Trainer

    Joined:
    Aug 4, 2017
    Messages:
    12
    Likes Received:
    5
    Practice Assignments:
    Rock Paper Scissor---> 2 player
    ---> Rock beats Scissor
    ---> Scissor beats Paper
    ---> Paper beats Rock

    Prime numbers: Numbers only divisible by 1 or itself
    1. Tell whether a number is prime or not.
    2. Find out all the prime numbers from a range 2-100
    3. Generate a list of first 20 prime nos
    Happy Learning!!!
    All The best!!!
     
    #2
  3. _39805

    _39805 Member

    Joined:
    Sep 9, 2018
    Messages:
    2
    Likes Received:
    0
     
    #3
  4. _39805

    _39805 Member

    Joined:
    Sep 9, 2018
    Messages:
    2
    Likes Received:
    0
    uploading the txt file for the assignments includes all the codes. plz go through and suggest changes or improvisations if any. all worked well in python 3.7.0 IDLE

    Thanks!
    Hrishi
     

    Attached Files:

    #4
  5. _38961

    _38961 Member

    Joined:
    Aug 30, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Nimisha,

    The Statistics Essentials for Data science self learning course that you recommended to go through seems to be a bit complex. Is there any other references that you would recommend that can explain the concepts in layman terms with examples so that it becomes easier for us to get accustomed to the terms and formulas being used.

    Thanks & Regards,
    Bala
     
    #5
  6. _6637

    _6637 Member

    Joined:
    Apr 22, 2017
    Messages:
    5
    Likes Received:
    1
    HI Nimisha,


    I second with Bala. the Statictics Essential for data Science self learning course is too complex. Is it possible for you spend some time on those topics,in the live classes.

    regards
    sudheendra
     
    #6
  7. _6637

    _6637 Member

    Joined:
    Apr 22, 2017
    Messages:
    5
    Likes Received:
    1
    hi Nimisha,
    please find attached the prime number and Rock, Paper and Scissors game implementation attached .

    regards
    Sudheendra
     

    Attached Files:

    #7
  8. _42084

    _42084 New Member

    Joined:
    Sep 28, 2018
    Messages:
    1
    Likes Received:
    0
    New
    hi Nimisha,

    I have installed anaconda and from their lunched jupyter. it is then asking for the Password or Token. Could you please help me
     

    Attached Files:

    • Jup.jpg
      Jup.jpg
      File size:
      126.9 KB
      Views:
      0
    #8
  9. _41021

    _41021 Member

    Joined:
    Sep 20, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Nimisha. Pls. find the attached file.
     

    Attached Files:

    #9
  10. _41021

    _41021 Member

    Joined:
    Sep 20, 2018
    Messages:
    2
    Likes Received:
    0
     

    Attached Files:

    #10
  11. _35821

    _35821 Member

    Joined:
    Jul 27, 2018
    Messages:
    3
    Likes Received:
    0
    hi everyone,
    please find attached my version of rock paper scissor

    Regards
    Eddy
     

    Attached Files:

    #11
  12. _35821

    _35821 Member

    Joined:
    Jul 27, 2018
    Messages:
    3
    Likes Received:
    0
    hi everyone,
    below is my code for determining whether a user-input number is a prime number. For the other 2 requirements on prime number, believe I would need to use nested loop, but still trying to figure out how to structure same.

    # tell whether number is prime number
    num = int(input("Enter a number: "))

    if num % 2 == 0:
    print (num, "is divisible by 2")

    elif num % 3 == 0:
    print (num, "is divisible by 3")

    elif num % 5 == 0:
    print (num, "is divisible by 5")

    elif num % 7 == 0:
    print (num, "is divisible by 7")

    elif num % 9 == 0:
    print (num, "is divisible by 9")

    else:
    for i in range(10,num):
    if num % i == 0:
    print (num, "is divisible by", i)
    else:
    print (num, "is a prime number")

    Regards
    Eddy
     
    #12
  13. _35821

    _35821 Member

    Joined:
    Jul 27, 2018
    Messages:
    3
    Likes Received:
    0
    the indentation does not appear well in the above though the indention is there when I try to edit same again
     
    #13
  14. Tushar Sharma_3

    Alumni

    Joined:
    Jan 31, 2018
    Messages:
    4
    Likes Received:
    1
    Here, I am uploading the solutions for the first assignment. Sorry, that it's a bit late. I enjoyed doing them.
     

    Attached Files:

    #14
  15. _41409

    _41409 New Member

    Joined:
    Sep 24, 2018
    Messages:
    1
    Likes Received:
    0
    Hi NImisha,
    I am not able to read the csv file from Jupytor notebook.
    imprt pandas as pd
    df = pd.read_csv('C:\\Users\\Rahul\\Desktop\\Datasets\\Lesson 8-9 Hypothesis Testing Ex 1.csv')
    df
    tried with lab also by uploading the file.but no success.
     
    #15
  16. _38961

    _38961 Member

    Joined:
    Aug 30, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Rahul,

    Please try the below:

    df = pd.read_csv('C:/Users/Rahul/Desktop/Datasets/Lesson 8-9 Hypothesis Testing Ex 1.csv')

    This format worked for me in jupyter from windows.

    Thanks & Regards,
    Bala
     
    #16
  17. _6637

    _6637 Member

    Joined:
    Apr 22, 2017
    Messages:
    5
    Likes Received:
    1
    Hello Nimisha,
    what is the use of astype 'category' in brics.country = brics.country.astype('category') . Normally string is represented as a object.
    Is there any specific use for datatype 'category' ?

    regards
    sudheendra
     
    #17

Share This Page