Generation

generate functionFri, 24 Feb 2023

Write a function for the Pandas dataframe that will delete the rows with the names spi_rank and country

def del_col(data_frame): data_frame.drop(['spi_rank', 'country'], axis=1, inplace=True) return data_frame

Questions about programming?Chat with your personal AI assistant