{
  "id": 41814,
  "title": "Data structure for transactions",
  "url": "/competitions/kkbox-churn-prediction-challenge/discussion/41814",
  "author_name": "Sky Huang",
  "post_date": "2017-10-24T06:42:52.277000",
  "votes": 1,
  "comment_count": 0,
  "views": 0,
  "content": "<p>Hello,</p>\n\n<p>I was wondering what data structure you guys use for transactions. My idea structure is to store transactions in a dictionary with the key to be the msno and values to be the transactions of the user. I can read the csv file line by line to make such data structure but it is too slow that I have to read in csv by pd.read_csv. However, after it reads in I don't know how to convert it to the structure I described above. I would very appreciate if someone can give me some guidance on how to do this or what data structure you are using for transactions. Thanks.</p>",
  "messages": [
    {
      "id": 234822,
      "postDate": "2017-10-24T06:42:52.277Z",
      "content": "<p>Hello,</p>\n\n<p>I was wondering what data structure you guys use for transactions. My idea structure is to store transactions in a dictionary with the key to be the msno and values to be the transactions of the user. I can read the csv file line by line to make such data structure but it is too slow that I have to read in csv by pd.read_csv. However, after it reads in I don't know how to convert it to the structure I described above. I would very appreciate if someone can give me some guidance on how to do this or what data structure you are using for transactions. Thanks.</p>",
      "rawMarkdown": "Hello,\n\nI was wondering what data structure you guys use for transactions. My idea structure is to store transactions in a dictionary with the key to be the msno and values to be the transactions of the user. I can read the csv file line by line to make such data structure but it is too slow that I have to read in csv by pd.read_csv. However, after it reads in I don't know how to convert it to the structure I described above. I would very appreciate if someone can give me some guidance on how to do this or what data structure you are using for transactions. Thanks.",
      "votes": 1
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "234822": "Hello,\n\nI was wondering what data structure you guys use for transactions. My idea structure is to store transactions in a dictionary with the key to be the msno and values to be the transactions of the user. I can read the csv file line by line to make such data structure but it is too slow that I have to read in csv by pd.read_csv. However, after it reads in I don't know how to convert it to the structure I described above. I would very appreciate if someone can give me some guidance on how to do this or what data structure you are using for transactions. Thanks."
  }
}