I am trying to check if item of list is not dataframe. My code is as below and this shows an error
list = [None, df1, df2, df3]
for n in list:
if n != None:
print(n)
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
is there any good solution?