I'm getting error in below code at the highlighted line......
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.datasets import load_boston
bosto=load_boston()
#here
bos1=pd.DataFrame(bosto)
print((bos1))
Traceback (most recent call last):
File "C:/Users/sac/PycharmProjects/LinearRegression/LRegression.py", line 9, in <module>
bos1=pd.DataFrame(bosto)
File "C:\Users\sac\PycharmProjects\LinearRegression\venv\lib\site-packages\pandas\core\frame.py", line 468, in __init__
mgr = init_dict(data, index, columns, dtype=dtype)
File "C:\Users\sac\PycharmProjects\LinearRegression\venv\lib\site-packages\pandas\core\internals\construction.py", line 283, in init_dict
return arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
File "C:\Users\sac\PycharmProjects\LinearRegression\venv\lib\site-packages\pandas\core\internals\construction.py", line 78, in arrays_to_mgr
index = extract_index(arrays)
File "C:\Users\sac\PycharmProjects\LinearRegression\venv\lib\site-packages\pandas\core\internals\construction.py", line 397, in extract_index
raise ValueError("arrays must all be same length")
ValueError: arrays must all be same length