Please provide resolution this error.
import os import pandas as pd os.chdir("E:\data_sets") cars_data = pd.read_csv('Toyota.csv',index_col=0,na_values=["??","????"]) cars_data1 = cars_data.copy(deep=False) cars_data1.insert(10,"Price_Class","") i=0 while i < len(cars_data1['Price']): if(cars_data1['Price'][i] <= 8450): cars_data1['Price_Class'][i]="Low" elif(cars_data1['Price'][i] > 11950): cars_data1['Price_Class'][i]="High" else: cars_data1['Price_Class'][i]="Medium" i=i+1 cars_data1.columns Getting below error in the code: __main__:6: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy __main__:4: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy __main__:8: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy