I am new to programming and python. Could you please help me with the reason for this error? I have listed the error below.
Code -
country_data_complete = country_data_complete.drop(columns=["City_y", "Host_Country"]),
country_data_complete = country_data_complete.rename({'City_x':'Host_City', 'wb_country_code':'Country_code', 'No. of Atheletes':'No_of_Athelets','Medal':'Total', 'Country':'Country_Name'})
country_data_complete.head()
Error -
AttributeError: 'tuple' object has no attribute 'rename'