Performing a Union With DataFrames

Python
Data Preprocessing

In Pandas we can perform a Union like we do in SQL by using the concat function.

 1|  import pandas as pd
 2|  
 3|  df3 = pd.concat(objs=[df1, df2])
1 Upvote
Tags: Concat | Union
Did you find this snippet useful?

Sign up to bookmark this in your snippet library

Normalize Windowed Time Series
Python
Data Preprocessing

Scaler | Normalize | Scale | Min-max

4
Pivoting Pandas Dataframes
Python
Data Preprocessing

Pandas

3