title: Why does pandas.dataframe generate random order
body: <p>Why does</p>
  <blockquote>
  <p>df = pd.DataFrame({user, points, timestr})</p>
  </blockquote>
  <p>in</p>
  <pre><code>import pandas as pd
  import time
  timestr = time.strftime(&quot;%Y-%m-%d %H:%M&quot;)
  
  url_all_time = 'https://community.koodomobile.com/widget/pointsLeaderboard?period=allTime&amp;maxResults=20&amp;excludeRoles='
  data = pd.read_json(url_all_time)
  user = data['name'][0]
  points = data['points'][0]
  df = pd.DataFrame({user, points, timestr})
  # df = df.transpose()
  df.to_csv('products.csv', mode='a', index=False, header=False, encoding='utf-8')
  </code></pre>
  <p>Generate random order results? Why does it not follow user, points, timestr? Sometimes names is first, sometimes it's the time, sometimes it's points? Did I not understand how pd.df works?</p>