项目作者: npdatax

项目描述 :
Data Analysis of Simulated data
高级语言: Jupyter Notebook
项目地址: git://github.com/npdatax/migration-data.git
创建时间: 2019-01-27T21:02:12Z
项目社区:https://github.com/npdatax/migration-data

开源协议:

下载


Data Sample

  1. {
  2. "ID":"8FRPYY572O",
  3. "age":41,
  4. "gender":"female",
  5. "profession":{
  6. "major":"Food Preparation and Serving Related Occupations",
  7. "branch":"Cooks, Fast Food"
  8. },
  9. "interest":"literature",
  10. "home_address":{
  11. "province":"PN3",
  12. "district":"Ramechaap",
  13. "MCP":"Umakunda RM",
  14. "ward":"Ward 3"
  15. },
  16. "foreign_address":{
  17. "country":"American-Samoa",
  18. "ID":"AS",
  19. "lat":"-19.015438",
  20. "lon":"29.154857",
  21. "city":"Rawson-Trelew-Playa Uni\u00f3n"
  22. },
  23. "date_out":"2018.1.6",
  24. "date_return":"2019.10.10",
  25. "fund2invest":{
  26. "invetsment sector":"9%",
  27. "tourism and hospitality":"7%",
  28. "animal husbandary":"5%",
  29. "infrastructure":"2%",
  30. "cottage industries":"8%",
  31. "personal service business":"2%",
  32. "retail business":"7%",
  33. "consultancy service":"3%",
  34. "alternative energy":"3%",
  35. "agriculture":"8%",
  36. "total_fund":2590
  37. },
  38. "remittance":[
  39. {
  40. "month":10,
  41. "amount":721
  42. },
  43. {
  44. "month":5,
  45. "amount":524
  46. },
  47. {
  48. "month":6,
  49. "amount":492
  50. },
  51. {
  52. "month":7,
  53. "amount":319
  54. },
  55. {
  56. "month":12,
  57. "amount":573
  58. },
  59. {
  60. "month":10,
  61. "amount":770
  62. }
  63. ],
  64. "travell":[
  65. {
  66. "date":"2017.2.18",
  67. "place":{
  68. "country":"Cook-Islands",
  69. "city":"Z\u00fcrich"
  70. }
  71. },
  72. {
  73. "date":"2018.8.11",
  74. "place":{
  75. "country":"Belarus",
  76. "city":"Mozir"
  77. }
  78. }
  79. ],
  80. "social_work":[
  81. {
  82. "date":"2011.10.3",
  83. "work":"pollution control"
  84. },
  85. {
  86. "date":"2010.12.7",
  87. "work":"medical camp"
  88. }
  89. ],
  90. "personal_view":[
  91. "Yet, having said that, the companies cannot operate without taking responsibility
  92. for their actions. The terms and services page of both Tootle and Pathao mention
  93. that they are only \u2018a technology company that does not provide or engage
  94. in transportation services\u2019. It further mentions that \u2018the company
  95. is not a transportation provider\u2019. These statements make it easier for
  96. them to shirk responsibility. Also, it does not make them liable for the
  97. insurance of the rider or the passenger in case of an accident. As a service
  98. provider, ensuring the safety of customers should be any company\u2019s top
  99. priority\u2014especially in the business of transportation."
  100. ]
  101. },

Data generator

  1. Generate a random ID of 10 letters(numbers)
  1. '1JOKS6RMCC'
  1. Generate a random age uniformly(normally) distributed within range (a,b)
  1. 42
  1. Generate a current country and city dictionary

    1. 'foreign_address': {'country': 'American-Samoa',
    2. 'ID': 'AS',
    3. 'lat': '-19.015438',
    4. 'lon': '29.154857',
    5. 'city': 'Rawson-Trelew-Playa Unión'},
  2. Generate a home address

    1. 'home_address': {'province': 'PN3',
    2. 'district': 'Ramechaap',
    3. 'MCP': 'Umakunda RM',
    4. 'ward': 'Ward 3'},
  3. Generate a profession

    1. {
    2. "major": "Medical Doctor",
    3. "branch": "Cancer therapy",
    4. }
  4. Fund available to implement in business/construction/share

    1. 'fund2invest': {'invetsment sector': '9%',
    2. 'tourism and hospitality': '7%',
    3. 'animal husbandary': '5%',
    4. 'infrastructure': '2%',
    5. 'cottage industries': '8%',
    6. 'personal service business': '2%',
    7. 'retail business': '7%',
    8. 'consultancy service': '3%',
    9. 'alternative energy': '3%',
    10. 'agriculture': '8%',
    11. 'total_fund': 2590},
  5. Special personal interest

    1. 'interest': 'literature',
  6. Date in and date out

    1. 'date_out': '2018.1.6',
    2. 'date_return': '2019.10.10',
  1. Previous social work if any:

    1. 'social_work': [{'date': '2011.10.3', 'work': 'pollution control'},
    2. {'date': '2010.12.7', 'work': 'medical camp'}],
  2. Travell History

    1. 'travell': [{'date': '2017.2.18',
    2. 'place': {'country': 'Cook-Islands', 'city': 'Zürich'}},
    3. {'date': '2018.8.11', 'place': {'country': 'Belarus', 'city': 'Mozir'}}],
  3. Personal statement/view/openion

    1. personal_view = "Yet, having said that, the companies cannot operate without taking
    2. responsibility for their actions.The terms and services page of both Tootle and Pathao
    3. mention that they are only ‘a technology company that does not provide or engage in
    4. transportation services’. It further mentions that ‘the company is not a transportation
    5. provider’.These statements make it easier for them to shirk responsibility. Also,
    6. it does not make them liable for the insurance of the rider or the passenger in case
    7. of an accident. As a service provider, ensuring the safety of customers should
    8. be any company’s top priority—especially in the business of transportation"
    9. `
  4. Remittance pattern

    1. 'remittance': [{'month': 10, 'amount': 721},
    2. {'month': 5, 'amount': 524},
    3. {'month': 6, 'amount': 492},
    4. {'month': 7, 'amount': 319},
    5. {'month': 12, 'amount': 573},
    6. {'month': 10, 'amount': 770}],