Issues with pandas Dataframe

Below code I have y_test & predicted_y and I want to compare them side by side using pandas df. Although I am getting output but it seems absurd (displayed below). weather = pd.read_csv(‘weather.csv’) X = weather[‘TempLowF’] y = weather[‘TempHighF’] X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.2) slope, intercept, r, p, std_err =…

Details

Material-table TypeError: Cannot add property tableData, object is not extensible

I’m using meterial-table with React. I’m trying to assign data from an array coming from an api like this <MaterialTable columns={columns} data={rows} … /> Where columns and rows are api data. But I’m getting this error: TypeError: Cannot add property tableData, object is not extensible Notably When I use mock hard-coded data, things are working…

Details