title: Use variable substitution for table name influxdb-python query
body: <p>I am trying to perform parameter substitution in an influxdb query, particularly I want to be able to specify the name of a given measurement (or table) on which to perform the query.</p>
  <p>Here is the following working code that I have:</p>
  <pre><code>def get_dataframe_from_influxdb(adress, database, table_db):
      client = DataFrameClient(host=adress, port=8086)
      client.switch_database(database)
  
      result = client.query(
          f'SELECT * FROM {table_db} WHERE time &gt; now() - 5h'
          )
      # additional processing steps for dataframe
  </code></pre>
  <p>I'd like something like this :</p>
  <pre><code>def get_dataframe_from_influxdb(adress, database, table_db):
      client = DataFrameClient(host=adress, port=8086)
      client.switch_database(database)
  
      params={'table':table_db}
  
      result = client.query(
          f'SELECT * FROM $table WHERE time &gt; now() - 5h',
          bind_params=params
          )
  </code></pre>
  <p>But according to the documentation the <code>bind_params</code> only works inside a WHERE clause.
  Is there any way I can set this up properly ?
  Thanks</p>