title: Using kmeans clustering for timeseries data
body: <p>I have a dataframe that represent the evolution of two metrics frequency and recency of each user per week</p>
  <pre><code>User Week   Frequency   Recency
  1     1       10         15
  1     2        9         13
  1     3       12         11
  2     1        5         14
  2     2        4         10
  2     3        8         8
  </code></pre>
  <p>i want to cluster this users using k-means based on two metrics frequency and recency, but i dont know how can use this algorithm with a time series data.</p>
  <p>it makes sense if i ignore the column week and consider all the features as features of data points ?
  i have seen sources presented  a distance  called dynamic_time_warping distance, but i dont know how to use it in my context?</p>