Generation

generate functionThu, 16 Feb 2023

Write a function that finds all object, string values in a column of numbers

def find_obj_str(df): obj_str = df.select_dtypes(['object', 'str']) return obj_str

Questions about programming?Chat with your personal AI assistant