Let's say I have a DataFrame as data, and I want to find if every single column in the data frame is an object and use it as an if condition. example: describe = data.describe (if condition to find all the columns are 'object'): agg = data.agg(['a','b','c']) if not agg.empty: describe = pd.concat(describe,agg) describe = describe.round(2) Continue reading...