title: Write pandas DF with tags to influxdb
body: <p>I have this <code>[3526 rows x 5 columns]</code> DF, where <code>col0</code> is time, <code>col1-col3</code> are tags and <code>col4</code> is my value.</p>
  
  <pre><code>                    0             1                  2         3      4
  0     2017-09-29 22:41:51     10.2.95.5   C1195_LF470_SARF   0.0.1.1  11993
  1     2017-09-29 22:41:37     10.2.52.7   CF643_RCZ70_SARM  0.0.1.16  12102
  2     2017-09-29 22:41:39    10.2.102.7   C1345_BQS70_SARF  0.0.1.17  18173
  3     2017-09-29 22:41:41   10.2.23.212   CN165_FS470_SAR8   0.0.0.7  23525
  4     2017-09-29 22:41:38     10.2.96.4   CF832_UY570_SARM   0.0.1.4   6162
  </code></pre>
  
  <p>So, I want to write that DF into influxdb. I'll do ...</p>
  
  <pre><code>timeValues  = df[ ['col0','col4'] ]
  tags        = { 'col1': df[['col1']], 'col2': df[['col2']], 'col3':df[['col3']] }
  
  dbConnDF = DataFrameClient(dbAddress, dbPort, dbUser, dbPassword, dbName)
  dbConnDF.write_points(dbName, tbName, timeValues, tags = tags)
  </code></pre>
  
  <p>After that, I get the error </p>
  
  <blockquote>
    <p>Must be DataFrame with Datetime or PeriodIndex</p>
  </blockquote>
  
  <p>However, if I do insert row by row using this...</p>
  
  <pre><code>dbConnQRY = InfluxDBClient(dbAddress, dbPort, dbUser, dbPassword, dbName)
  dbConnQRY.write_points(bodyDB)
  </code></pre>
  
  <p><em>where:</em></p>
  
  <pre><code>bodyDB = [{
      "measurement": tbName,
      "tags":
      {
          "col1": col1,
          "col2": col2,
          "col3": col3
      },
      "time": col0,
      "fields":
      {
          "col4": col4
      }
  }]
  </code></pre>
  
  <p>... I get no error at all. So the problem appears when I try to insert the whole DF at once.</p>
  
  <p>How do I tell influxdb that <code>col0</code> is my index to avoid the error?</p>
  
  <p>Thanks!</p>