From the course: Practical Python for Time Series Analysis
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Inner join vs. outer join - Python Tutorial
From the course: Practical Python for Time Series Analysis
Inner join vs. outer join
- [Instructor] To visualize multiple time series with different frequencies, we must learn the differences between inner join and outer join. Taking the code from the previous video, we observe almost 3,500 rows. This is because there is a parameter called join that it's using the default outer. However, if we use the other one, which results in having multiple data that you see at the end with missing values, because the frequencies are different. And not all the data points from the first column coincide with the ones in the second column. However, if we put join = inner, we are making sure that the only data points to shown are the ones that they coincide. And now, by the time we plot the data, we can observe the full continuation of the line. However, this doesn't make any sense because the index doesn't follow a regular frequency for the day times. For example, between the first two rows, there is a difference…
Contents
-
-
-
(Locked)
Combine multiple time series datasets2m 34s
-
(Locked)
Download and load FRED data4m 54s
-
(Locked)
Concatenate time series with pandas.concat()4m 37s
-
(Locked)
Inner join vs. outer join1m 49s
-
(Locked)
Fill missing data with linear interpolation2m 13s
-
(Locked)
Automate loading with for loops3m 34s
-
(Locked)
Rename columns and export data4m 39s
-
(Locked)
-
-
-
-
-
-
-
-
-
-