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:
    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
    _40226 likes this.
  2. Phong Nguyen_1

    Joined:
    Sep 10, 2018
    Messages:
    3
    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

Share This Page