title: Dataframe to json using python
body: <p>I a dataframe of below format</p>
  <p><a href="https://i.stack.imgur.com/kvmd3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kvmd3.png" alt="enter image description here" /></a></p>
  <p>I want to send each row separately as below:</p>
  <pre><code>{ 'timestamp': 'A'
    'tags': {
           'columnA': '1',
           'columnB': '11',
           'columnC': '21'
            .
            .
            .
            .}}
  
  </code></pre>
  <p>The columns vary and I cannot hard code it. Then Send it to firestore collection</p>
  <p>Then second row in above format to firestore collection and so on</p>
  <p>How can I do this?
  and don't mark the question as duplicate without comparing questions</p>