How to merge different shaped dataframes horizontally?

Viewed 35

I have three datasets of different shapes. I want to merge them horizontally. How to do that.

Three dfs are following

data_Xception = pd.concat([data_Covid,data_Normal,data_Pneumonia],axis = 1)

I want output as

enter image description here

How to do it?

I tried data = pd.concat([data_Covid,data_Normal,data_Pneumonia],axis = 1) enter image description here

The format is okay but I have total 1288 values

data_Covid:- 116 data_Normal:- 317 data_Pneumonia:- 855

I am getting 855 records. How to get full 1288 values

0 Answers
Related