I am using
pd.testing.assert_frame_equal(expected,actual)
for unit testing,
expected = pd.Dataframe(actual.to_dict()) .
But pandas to_dict() function is implicitly changing the dtype from int32 to int64. How should I avoid it? Any help is highly appreciated.