0

I have two dataframes which has non null values df1 and df2. Shape of df1 is (3681031, 52) and df2 is (3681031, 2). I'm concatenating the two dataframes using the following

df_merged = pd.concat([df1,df2], axis = 1)

I would expect the shape of the resulting dataframe to be (3681031, 54) however, it is (4667215, 54) and it also has a lot of nulls. Not sure whats going wrong as both the dataframes are sliced from the same dataframe.

I would appreciate any inputs.

iprof0214
  • 701
  • 2
  • 6
  • 19

0 Answers0