Question: Import the dataset boston.csv into a Pandas dataframe and obtain the number of rows and columns for the dataframe. I keep getting this error when

Import the dataset boston.csv into a Pandas dataframe and obtain the number of rows and columns for the dataframe.

I keep getting this error when trying to import to python jupyter. Can anyone assist me with this, please?

[Errno 2] No such file or directory: 'C:\\Users\\Abana\\OneDrive\\Documents\\ADS\\ADS500B\\boston(1).csv'

Here is my code:

import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns

df =pd.read_csv(r'C:\Users\Abana\OneDrive\Documents\ADS\ADS500B\boston.csv') print (df)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!