I am attempting to combine three dataframes that total over 120,000 features and 206,000 rows. All three of the dataframes are document-term matrices. Here is the code:
new_df = pd.concat([df_1, df_2], axis = 1, sort = False)
As you can see I am using the concat function to combine the three dataframes across the horizontal axis. Currently, Jupyter Notebook times out and restarts the kernel after a while of this code running (I assume because of the number of features). Any insight into ways to reduce the size of these dataframes or combine them would be very much appreciated.