title: How to find correlation between two trends that have different time values
body: <p>I have a table that contains time and two types of wind speed trends. I am interested in finding the correlation between the two wind speed trends. Here is the graph below.</p>
  
  <p><a href="https://i.stack.imgur.com/3xR1n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3xR1n.png" alt="enter image description here"></a></p>
  
  <p>However, the problem is that the wind speeds were recorded at slightly different times. For example, a datum from wind speed no.1 could be recorded on 1/15/18 10:30am while the closest datum from wind speed no.2 could be recorded on 1/15/18 10:31am. When I try to run a pearson/spearman correlation using Pandas from Jupyter Labs (python), I get an error since they do not have any common times. Is there a way where I can still calculate the correlation between the two trends despite them having different times? If not, what would you recommend to solve this issue?
  <a href="https://i.stack.imgur.com/tKNIE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tKNIE.png" alt="enter image description here"></a></p>