Skip to content
Advertisement

Tag: python-applymap

How to use applymap lambda with two conditions

I’d like to find duplicated rows in a Pandas dataframe. When I use df.duplicated() it returns the following error: TypeError: unhashable type: ‘list’ To resolve this error, I tried the following: However, I receive a new but similar error: “TypeError: unhashable type: ‘dict'” Does anyone know how I can use applymap lambda with two conditions? (the conditions are if isinstance(x,

Advertisement