title: Writing Custom Data frames to from pyspark to Azure Event Hub
body: <p>Trying to add a custom Pandas data frame to Azure Event Hub. Here is the code:</p>
  
  <pre><code>  dic = { 
             'body' : filter_data
      }
      df = pd.DataFrame(dic,index=[0])
      df1 = df.astype(str)
      ds = df1 \
          .select('body') \
    .write \
    .format("eventhubs") \
    .options(**ehEventConf) \
    .option("checkpointLocation", "output") \
    .save()
  </code></pre>
  
  <p>I am geeting an error like <code>"TypeError: 'str' object is not callable"</code></p>