Python for Data Science|Nov 24- Dec-29|Aayushi

Discussion in 'Big Data and Analytics' started by Kunal Guwalani, Nov 24, 2018.

  1. Kunal Guwalani

    Kunal Guwalani Well-Known Member
    Simplilearn Support

    Joined:
    Jul 17, 2018
    Messages:
    112
    Likes Received:
    6
    Hi Learners,

    This thread is for you to discuss the query and concepts related to Data Science With Pyhton course.

    Happy Learning !!

    Regards,
    Team Simplilearn
     
    #1
  2. _33623

    _33623 New Member

    Joined:
    Jun 29, 2018
    Messages:
    1
    Likes Received:
    0
    Hello world
     
    #2
  3. _49356

    _49356 New Member

    Joined:
    Nov 23, 2018
    Messages:
    1
    Likes Received:
    0
    mam how to access your goggle drive.pl. help
     
    #3
  4. kamal jaiswal

    kamal jaiswal Member

    Joined:
    Mar 7, 2016
    Messages:
    4
    Likes Received:
    0
    Not able to understand following issue.
    a = ('xyz', 'zara', 'abc')
    aList = list(a)
    aList
    ---------------------------------------------------------------------------
    TypeError Traceback (most recent call last)
    <ipython-input-39-1dec2b49df82> in <module>()
    1 a = ('xyz', 'zara', 'abc')
    ----> 2 aList = list(a)
    3 aList

    TypeError: 'list' object is not callable
     
    #4
  5. _45538

    _45538 New Member

    Joined:
    Oct 27, 2018
    Messages:
    1
    Likes Received:
    1
    In the above Example, You have defined Tuple and you are trying to convert it to list. If you want the list output then use this.
    This will covert the tuple to list and prints the list which you are expecting.
    a = ('xyz','zara','abc')
    print(list(a))

    you can also try this:
    a = ('xyz','zara','abc')
    alist = list(a)
    print(alist)
    Did I answer your question correctly? Is that what you are looking for? let me know If I am wrong.
     

    Attached Files:

    #5
    kamal jaiswal likes this.
  6. _49323

    _49323 Member

    Joined:
    Nov 23, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Aayushi,

    Day 2 document is not available in drive. Please help me.
     
    #6
  7. _8128

    _8128 Member

    Joined:
    Jun 2, 2017
    Messages:
    4
    Likes Received:
    0
    Hi Aayushi,
    I have one slightly different query in Python. At my work, we use webservices for our activities. For example, for account creation, I use CreateAccount web service. If I need to create 100 accounts, I prepare 100 XML documents and copy & paste them in SOAP UI one by one, manually, for 100 times to call the CreateAccount webservice.
    Is there a way I can use Python for automating this? Can you kindly help?
     
    #7
  8. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    #8
  9. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Are you still not able to access?
    Please raise a ticket on help and support.
     
    #9
  10. _49840

    _49840 Member

    Joined:
    Nov 28, 2018
    Messages:
    4
    Likes Received:
    0
    #10
  11. _49840

    _49840 Member

    Joined:
    Nov 28, 2018
    Messages:
    4
    Likes Received:
    0
    Hi Aayushi,

    Day 3 document is not available in drive. Please help me.
     
    #11
  12. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    #12
  13. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Hi,

    Are you not able to see the homepage of jupyter ?

    In order to see it, two ways:
    1) Start the Anaconda Navigator, launch jupyter notebook
    2) Start Command Prompt, from any specified location type - jupyter notebook (it should get launched on the browser)

    In order to troubleshoot, try reinstalling Anaconda again.

    If still facing issues, paste the screenshots here.
    Hope it helps :)
     
    #13
  14. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Hi,
    Apologies for replying late as I missed your query earlier.
    So, when you have prepared 100 XML documents
    you can save them in excel sheet/csv file in the form of python dictionary/python lists using Pandas dataframe (converting them in structured format). And then you can access it and hit your webservice in loop.

    Hope it helps :)
     
    #14
  15. _49840

    _49840 Member

    Joined:
    Nov 28, 2018
    Messages:
    4
    Likes Received:
    0
    Didn't try above however, i searched for the jupyter notebook using Start -> Search Programs and files and able to launch it now..Thanks for the help
     
    #15
  16. _48699

    _48699 New Member

    Joined:
    Nov 19, 2018
    Messages:
    1
    Likes Received:
    0
    I don't see the assignment shared in the google drive.
     
    #16
  17. _28535

    _28535 Member

    Joined:
    Apr 5, 2018
    Messages:
    4
    Likes Received:
    0
    i am not able to run simple code like
    name1 = str()

    kindly help me with this.

    error message:
    upload_2018-12-3_20-47-22.png
     
    #17
  18. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Hi,
    Please check the attached screenshot. The code is working fine.
    Please restart your jupyter notebook. I think it should work.
     

    Attached Files:

    #18
  19. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Guys, I have uploaded the Assignment1 on Google Drive for your practice.
    Happy Learning :)
     
    #19
    _49323 and _48699 like this.
  20. _49323

    _49323 Member

    Joined:
    Nov 23, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Aayushi,
    Function doc is not available in drive. Please provide.
     
    #20
  21. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Hi ,

    It is present in Day3 -> Functions In Python folder
    Please check.
     
    #21
  22. _28535

    _28535 Member

    Joined:
    Apr 5, 2018
    Messages:
    4
    Likes Received:
    0
    Hi Aayushi, I have no problem running this code separately. But if I run this code with other sequence codes provided in your sheet, getting error message.
    But thank you for helping out.
    Aruna
     
    #22
  23. nicolasstephney

    Joined:
    Nov 14, 2018
    Messages:
    6
    Likes Received:
    0
    I am also unable to access the labs No Access To Labs.png
     
    #23
  24. nicolasstephney

    Joined:
    Nov 14, 2018
    Messages:
    6
    Likes Received:
    0
    Here is my Assignment 1 which was uploaded on Google Drive for review
     

    Attached Files:

    #24
  25. _46387

    _46387 Member

    Joined:
    Nov 1, 2018
    Messages:
    6
    Likes Received:
    0
    I have uploaded the solution for Assignment1 for review.Also please share me where the other assignments available .I am not able to find the dataset for PANDAS Assignment
     

    Attached Files:

    #25
    Last edited: Dec 11, 2018
  26. Kunal Guwalani

    Kunal Guwalani Well-Known Member
    Simplilearn Support

    Joined:
    Jul 17, 2018
    Messages:
    112
    Likes Received:
    6
    Please refer to the attachment Download section is now shifted to course resources. Scroll down in self-learning tab.
     

    Attached Files:

    #26
  27. Kunal Guwalani

    Kunal Guwalani Well-Known Member
    Simplilearn Support

    Joined:
    Jul 17, 2018
    Messages:
    112
    Likes Received:
    6
    I have checked your account the lab is working fine. Please refer to the attachment for the same. However, I am slso sharing some trouble Shooting steps with you for lab.

    -Clear cache & cookies of your browser and try login again.
    -Refresh the page any error occurs & try again.
    -Use the personal laptop instead of the office laptop, It may happen due to some restrictions on office laptop.
    -Open LMS in incognito mode and try again.
    -Try using a different browser.

    If you still face any issue feel free to contact us.
     

    Attached Files:

    • nic.gif
      nic.gif
      File size:
      298.6 KB
      Views:
      9
    #27
  28. _41569

    _41569 Member

    Joined:
    Sep 25, 2018
    Messages:
    7
    Likes Received:
    0
    Hi Aayushi,

    PFA for the assignment1.
     

    Attached Files:

    #28
  29. _40688

    _40688 Member

    Joined:
    Sep 18, 2018
    Messages:
    4
    Likes Received:
    0
    Hi Aayushi,

    PFA assignment2 on Pandas
     

    Attached Files:

    #29
  30. _46387

    _46387 Member

    Joined:
    Nov 1, 2018
    Messages:
    6
    Likes Received:
    0
    I still couldnt get the dataset . FAA dataset.

    upload_2018-12-12_15-5-45.png
     
    #30
  31. Kunal Guwalani

    Kunal Guwalani Well-Known Member
    Simplilearn Support

    Joined:
    Jul 17, 2018
    Messages:
    112
    Likes Received:
    6
    Please refer the attachment the dataset is in the resources tab.
     

    Attached Files:

    • FAA.PNG
      FAA.PNG
      File size:
      154.8 KB
      Views:
      10
    #31
  32. _46387

    _46387 Member

    Joined:
    Nov 1, 2018
    Messages:
    6
    Likes Received:
    0
    I am not getting any question and dataset in the section .PFB
    upload_2018-12-13_14-48-3.png
     
    #32
  33. Kunal Guwalani

    Kunal Guwalani Well-Known Member
    Simplilearn Support

    Joined:
    Jul 17, 2018
    Messages:
    112
    Likes Received:
    6
    Click on next button. Then you will able to see the resource tab on the top right in small fonts. If you still face any issue please let us know the suitable timings so that we can connect with you.
     
    #33
  34. _46387

    _46387 Member

    Joined:
    Nov 1, 2018
    Messages:
    6
    Likes Received:
    0
    I still cant find. You can connect with me anytime.I will be regularly checking mails
     
    #34
  35. Kunal Guwalani

    Kunal Guwalani Well-Known Member
    Simplilearn Support

    Joined:
    Jul 17, 2018
    Messages:
    112
    Likes Received:
    6
    I have created a GIF. Please refer to the GIF and you will get the path to download datasets. I hope it helps you.
     

    Attached Files:

    #35
  36. kamal jaiswal

    kamal jaiswal Member

    Joined:
    Mar 7, 2016
    Messages:
    4
    Likes Received:
    0
  37. _8128

    _8128 Member

    Joined:
    Jun 2, 2017
    Messages:
    4
    Likes Received:
    0
    Hi! Kindly find my assignments uploaded.
     

    Attached Files:

    #37
  38. _48426

    _48426 Member

    Joined:
    Nov 15, 2018
    Messages:
    2
    Likes Received:
    0
    Hi - Solution for Assignment1 attached to this comment.
     

    Attached Files:

    #38
  39. _46387

    _46387 Member

    Joined:
    Nov 1, 2018
    Messages:
    6
    Likes Received:
    0
    PFA my PANDAS assignment for review
     

    Attached Files:

    #39
  40. _22240

    _22240 Member
    Alumni

    Joined:
    Feb 5, 2018
    Messages:
    9
    Likes Received:
    0
    Hi,

    Can you please help me? How can I write below code in Pyspark?

    Scala code:
    val v=sc.parallelize(List('a','a','c','x','x'))
    v.map(e =>(e,1)).partitionBy(new HashPartitioner(2)).reduceByKey((x,y) => (x+y)).collect()
     
    #40
  41. nicolasstephney

    Joined:
    Nov 14, 2018
    Messages:
    6
    Likes Received:
    0
    Here are all the assignments I've done. Included should be Pandas assignments 1 and 2 and Numpy assignments 1 and 2
     

    Attached Files:

    #41
  42. _41569

    _41569 Member

    Joined:
    Sep 25, 2018
    Messages:
    7
    Likes Received:
    0
    Hi Kunal,

    As you mentioned In .gif file.I tried ,But I am unable to see the resource tab in the7.11 Assignment.Could yo please provide us the datasets for the both Assignments.

    Thanks,
    Jaya Kishore
     

    Attached Files:

    #42
  43. nicolasstephney

    Joined:
    Nov 14, 2018
    Messages:
    6
    Likes Received:
    0
    Concerning the NYC project. When they ask for the location is it asking for location type in the dataset? I used location type for my locaion. Secondly I'm no sure what they meant by finding patterns (what patterns do we need to generate)? I just displayed several graphs showcasing the frequencies of the complaints vs. the locations. Lastly when it ask to display the complaint type as well as location are they asking for a dataframe to display it?
     
    #43
  44. _46859

    _46859 Member

    Joined:
    Nov 5, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Aayushi, I have two queries.

    One, I am trying to do pd.cut and bin a column that contains date and time. I am getting syntax error. Attached my code

    Two, in the " Movielens Dataset Analysis" assignment - the folder does not contain csv files. Can you pls check?
     

    Attached Files:

    #44
    Last edited: Dec 25, 2018
  45. _44447

    _44447 New Member

    Joined:
    Oct 18, 2018
    Messages:
    1
    Likes Received:
    0
    In NYC project
    =>Plot a bar graph of count vs. complaint types
    what does count mean i mean to say that which data i have to count and plot a bar graph.
     
    #45
  46. _41569

    _41569 Member

    Joined:
    Sep 25, 2018
    Messages:
    7
    Likes Received:
    0
    Hi Aayushi,

    In NYC project project "Display the complaint type and city together" I am unable to group the cities ,because these cities comes under US.
    So could you please help me in resolving this .I checked in other examples also.

    Thanks,
    Jaya Kishore
     
    #46
  47. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Hi Jaya,

    For two categorical variables, we plot them using crosstab() function of pandas.
    You can explore the data using it. Please explore it.

    Hope it helps !!!
     
    #47
  48. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    hi,

    Here count means the frequency of complaint types.
     
    #48
  49. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Hi,

    I have uploaded the dataset for projects for your reference in the Projects for Submission folder.
     
    #49
  50. Aayushi_6

    Aayushi_6 Well-Known Member

    Joined:
    Sep 19, 2016
    Messages:
    89
    Likes Received:
    7
    Please check in the downloads section on LMS.
     
    #50

Share This Page