If you really don’t care about the index being equal, you can drop the index as follows:
assert_frame_equal(d1.reset_index(drop=True), d2.reset_index(drop=True))
Related Contents:
- How do I select rows from a DataFrame based on column values?
- How to delete rows from a pandas DataFrame based on a conditional expression [duplicate]
- Combining two Series into a DataFrame in pandas
- How can I obtain the element-wise logical NOT of a pandas Series?
- Pandas: Setting no. of max rows
- How to show all columns’ names on a large pandas dataframe?
- Apply vs transform on a group object
- Drop all duplicate rows across multiple columns in Python Pandas
- How to plot in multiple subplots
- Pandas convert dataframe to array of tuples
- Python Pandas merge only certain columns
- pandas how to check dtype for all columns in a dataframe?
- What values are valid in Pandas ‘Freq’ tags?
- Save list of DataFrames to multisheet Excel spreadsheet
- Find integer index of rows with NaN in pandas dataframe
- Python pandas: how to specify data types when reading an Excel file?
- Pandas: how to change all the values of a column?
- Retrieve DataFrame of all but one specified column [duplicate]
- How to build and fill pandas dataframe from for loop? [duplicate]
- Pandas merge two dataframes with different columns
- Finding common rows (intersection) in two Pandas dataframes
- df.drop if it exists
- Getting min and max Dates from a pandas dataframe
- Is there a parameter in matplotlib/pandas to have the Y axis of a histogram as percentage?
- Merge multiple column values into one column in python pandas
- Transform a Counter object into a Pandas DataFrame
- Histogram values of a Pandas Series
- Copy all values in a column to a new column in a pandas dataframe
- How to iterate over Pandas Series generated from groupby().size()
- how to multiply multiple columns by a column in Pandas
- Python Pandas Histogram Log Scale
- Plotting pandas timedelta
- Scikit-learn balanced subsampling
- Pandas – Slice large dataframe into chunks
- Insert a Pandas Dataframe into mongodb using PyMongo
- pandas datetime to unix timestamp seconds
- ValueError: Shape of passed values is (1, 6), indices imply (6, 6)
- GroupBy results to dictionary of lists
- Pandas: conditional rolling count
- How to read a column of csv as dtype list using pandas?
- countplot with normalized y axis per group
- Melt the Upper Triangular Matrix of a Pandas Dataframe
- How can I set the x-axis as datetimes on a bokeh plot?
- AttributeError: Can’t get attribute ‘new_block’ on
- How to create a DataFrame while preserving order of the columns?
- Keep other columns when using sum() with groupby
- How to remove rows in a Pandas dataframe if the same row exists in another dataframe?
- ValueError: cannot insert ID, already exists
- Duplicated rows when merging dataframes in Python
- Apply StandardScaler to parts of a data set [duplicate]