DS-PYTHON | SEP 22 - OCT 27 | BHUPENDRA

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

  1. Nishant Singh_3

    Nishant Singh_3 Well-Known Member
    Simplilearn Support

    Joined:
    Aug 1, 2018
    Messages:
    136
    Likes Received:
    5
    Hi Learner,

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

    Happy Learning !!

    Regards,
    Team Simplilearn
     
    #1
    Last edited: Nov 8, 2018
    _40226 likes this.
  2. Phong Nguyen_1

    Joined:
    Sep 10, 2018
    Messages:
    4
    Likes Received:
    0
    Hi all,

    I am having some issue with the ML-KNN-01-input-test notebook file. After import the data from the csv file, I cannot execute this code, it returns an error says sepal_width does not exist.

    Please help. Thanks

    # for each row in the dataframe, calculate the distance
    for index, row in df_iris.iterrows():
    eucDist = sqrt(((float(inputarray[0]) - float(row['sepal_length'])) ** 2 +
    (float(inputarray[1]) - float(row['sepal_width'])) ** 2 +
    (float(inputarray[2]) - float(row['petal_length'])) ** 2 +
    (float(inputarray[3]) - float(row['petal_width'])) ** 2))

    df_iris.loc[index, 'distance'] = eucDist
     
    #2
  3. Pratiksha Saxena

    Alumni

    Joined:
    Apr 16, 2016
    Messages:
    3
    Likes Received:
    0
    Hi,

    I am trying to install nltk.
    I have windows 7 ,64 bit.Installed Anaconda.
    I can see Python 3.6.5 but it does not find pip3 .I have even reinstalled Anaconda.
    Please help.
     
    #3
  4. Valerie Parham-Thompson

    Customer

    Joined:
    Sep 27, 2018
    Messages:
    1
    Likes Received:
    0
    I installed the nltk module with `conda install nltk` but when I used it (in Python via `import nltk`), I received the following error message in Python:
    ImportError: No module named nltk

    I am able to install it via pip (`pip install nltk`), and then I can use the nltk module in Python. However, I wondered how to do it the "correct" way with conda.

    I am using Mac OSX.

    Thanks!
     
    #4
  5. K Manoj

    K Manoj Moderator
    Staff Member Simplilearn Support

    Joined:
    Aug 4, 2017
    Messages:
    241
    Likes Received:
    22
    pip is for Python only

    conda existing packages are for Python, and indeed conda itself is written in Python, but you can also have conda packages for C libraries, or R packages, or really anything.

    The reason you might be getting an error in conda install is that conda did not install the package systemwide, but just in one of the virtual environments. Hence, the error

    ImportError: No module named nltk
     
    #5
  6. Sukhendu Sain

    Sukhendu Sain Member

    Joined:
    Sep 29, 2018
    Messages:
    8
    Likes Received:
    0
    Hi, I have submitted the projects for "Data Science with Python" class today. Bhupendra was trainer for this class.
    My batch was 08-Oct till 26-Oct
    Please evaluate the projects.

    Thanks and Regards,
    Sukhendu Sain
     
    #6
  7. Phong Nguyen_1

    Joined:
    Sep 10, 2018
    Messages:
    4
    Likes Received:
    0
    Hi Bhupen,

    I checked the google drive folder for your ppts but haven't seen any uploaded yet. Just want to know whether you have uploaded it yet.

    Thanks.
     
    #7
  8. Nishant Singh_3

    Nishant Singh_3 Well-Known Member
    Simplilearn Support

    Joined:
    Aug 1, 2018
    Messages:
    136
    Likes Received:
    5
    Hi Phong,

    Bhupen will be uploading the files within 1 or 2 more days.

    Bhupen confirmed that he was busy with some urgent work thus was not able to do so on time.

    I request you be a little more patient and check on 10-Nov-18 for the files in the Google Drive.

    Your patience will be highly appreciated.

    I hope that this will help you.

    Thank you.

    Regards,
    Team Simplilearn
     
    #8

Share This Page