This recipe shows how to add Series with only a single index together. It is also entirely possible to add DataFrames together. Adding DataFrames together will align both the index and columns before computation and yield missing values for non-matching indexes. Let's start by selecting a few of the columns from the 2014 baseball dataset.
>>> df_14 = baseball_14[['G','AB', 'R', 'H']]>>> df_14.head()
>>> df_15 = baseball_15[['AB', 'R', 'H', 'HR']]>>> df_15.head()
Adding the two DataFrames together create missing values wherever rows ...