Path: blob/master/05_Merge/Fictitous Names/Exercises.ipynb
548 views
Kernel: Python 2
Fictitious Names
Introduction:
This time you will create a data again
Special thanks to Chris Albon for sharing the dataset and materials. All the credits to this exercise belongs to him.
In order to understand about it go here.
Step 1. Import the necessary libraries
In [ ]:
Step 2. Create the 3 DataFrames based on the following raw data
In [1]:
Step 3. Assign each to a variable called data1, data2, data3
In [ ]:
Step 4. Join the two dataframes along rows and assign all_data
In [ ]:
Step 5. Join the two dataframes along columns and assing to all_data_col
In [ ]:
Step 6. Print data3
In [ ]:
Step 7. Merge all_data and data3 along the subject_id value
In [ ]:
Step 8. Merge only the data that has the same 'subject_id' on both data1 and data2
In [ ]:
Step 9. Merge all values in data1 and data2, with matching records from both sides where available.
In [ ]: