Project - End-to-End Project

1 / 31

Chapter Overview - End to End Project







Please login to comment

15 Comments

Hi Sir,

 

Why we have dived the income_cat by  1.5?. plz give the explanations 

  Upvote    Share

Hi,

The income_cat is divided by 1.5 to divide the data into suitable sized bins.

Thanks.

  Upvote    Share

This comment has been removed.

import pandas as pd
import os

HOUSING_PATH = 'https://jupyter.f.cloudxlab.com/user/bidhudatta21443/tree/Bidhu_Dataset'
def load_housing_data(housing_path=HOUSING_PATH): 
    csv_path = os.path.join(housing_path, "housing.csv") 
    return pd.read_csv(csv_path)

housing = load_housing_data()
housing.head()

Getting the below error:

"ParserError: Error tokenizing data. C error: Expected 1 fields in line 12, saw 2 "

Please help on this.

  Upvote    Share

Hi,

The correct path should be ../ml/machine_learning/datasets/housing/housing.csv. Also, would suggest you to consult the code from our notebooks available in our GitHub repository as shown in the slides.

Thanks.

  Upvote    Share

Hi,

Thanks for the reply. Still I am getting the same error.

GitHub repository:

import pandas as pd
import os

HOUSING_PATH = 'datasets/housing/'
def load_housing_data(housing_path=HOUSING_PATH): 
    csv_path = os.path.join(housing_path, "housing.csv") 
    return pd.read_csv(csv_path)

housing = load_housing_data()
housing.head()

My code 1:

import pandas as pd
import os

HOUSING_PATH = 'https://jupyter.f.cloudxlab.com/user/bidhudatta21443/tree/ml/machine_learning/datasets/housing'
def load_housing_data(housing_path=HOUSING_PATH): 
    csv_path = os.path.join(housing_path, "housing.csv") 
    return pd.read_csv(csv_path)

housing = load_housing_data()
housing.head()

Error:

ParserError: Error tokenizing data. C error: Expected 1 fields in line 12, saw 2

My code 2:

housing = pd.read_csv("https://jupyter.f.cloudxlab.com/user/bidhudatta21443/edit/ml/machine_learning/datasets/housing/housing.csv")
housing.head()

Same error:

ParserError: Error tokenizing data. C error: Expected 1 fields in line 12, saw 2
  Upvote    Share

Hi,

As mentioned earlier, please use the following:

HOUSING_PATH = '../ml/machine_learning/datasets/housing/housing.csv'

Thanks.

  Upvote    Share

This comment has been removed.

Hi,

I have completed this project 100% but now it is showing 97% completed. Please resolve the issue ASAP.

Regards,

Amit

  Upvote    Share

Hi,

I see that you have not completed topic# 5. Please complete that and it will show 100%.

Thanks.

  Upvote    Share

Jupyter service not available. Please look into this

503 : Service Unavailable
Your server appears to be down. Try restarting it from the hub

Thanks in advance

  Upvote    Share

Hi,

Are you still facing this issue?

Thanks.

-- Rajtilak Bhattacharjee

  Upvote    Share

Its fixed now Thank you :)

  Upvote    Share

Hi Team,

Can not connect to jupyter NoteBook. PFA.

  Upvote    Share

Hi Arpita,

Would request you to restart your server using the following method:
https://discuss.cloudxlab.c...
If the issue persists, would request you to share your email id with us.
Thanks.

-- Rajtilak Bhattacharjee

  Upvote    Share