Is there a Pythonic way (no loops or recursion) to check if more than two pd.DataFrames (e.g., a list of pd.DataFrames) are equal to each other?
Is there a Pythonic way (no loops or recursion) to check if more than two pd.DataFrames (e.g., a list of pd.DataFrames) are equal to each other?
Something like:
all(x.equals(dfs[0]) for x in dfs)
with dfs the list of dataframes. This checks if they are all equal to the first - which I think is equivalent to asking if they are all equal to one another.