Generation

generate functionThu, 16 Feb 2023

Write a function that finds all 'object' values in a Pandas dataframe column 'values'

def object_finder(dataframe, column): return dataframe[dataframe[column].apply(lambda x: type(x) == object)] object_finder(data, 'values')

Questions about programming?Chat with your personal AI assistant