I'm attempting to append one DataFrame to the end of another. The first DataFrame has 100 columns. The second DataFrame has 30 columns. (The second's columns are a subset of the first's.) My intention is any column not present in the second will simply be assigned an NA value.
I'm following the example described in the Pandas documentation:https://pandas.pydata.org/pandas-docs/stable/merging.html#concatenating-using-append
The second example shows that if the two DataFrames have different columns, pandas will intelligently fill the missing data with NA.
However, when I try this, I just get: "ValueError: Plan shapes are not aligned"
df_a.shape
Out[27]: (50000, 100)
df_b.shape
Out[26]: (414, 30)
df_all = df_a.append(df_b, ignore_index=True)
Can anybody help explain what I may be doing wrong?
Thank You!