I extracted the following set of data and placed them into a dictionary. What is the best way to represent this data in python csv?
After the first 4 key-value pairs, I have 4 keys with nested lists as values in order to store the information contained in them.
The nested lists are problematic as they do not show up properly in csv. If I attempt to store each string in the nested list as an independent cell, it will also affect the comprehension of the first 4 key-value pairs.
Hoping someone can give advice on this dilemma.
{
'ID': '1',
'Name': 'PROF DR BACHTIAR ALY MA',
'Faction': 'National Democrat Party Faction',
'Constituency': 'ACEH I',
'Educational Background': ['Sekolah Rakyat Tahun: - 1963', ' SMPN 1 Banda Aceh Tahun: - 1965', 'IPS SMA YPU Bandung Tahun: - 1968', 'Fakultas Publistik UNPAD Tahun: 1969 - 1971', 'Komunikasi Westfaelishe Wilhemlins Tahun: 1974 - ', 'Philosophische Universitas Westfalischen Jerman Tahun: - 1984'],
'Working Experience': ['Pokja Pengaduan Dewan Pers Sebagai: Anggota Tahun: 2003 - 2006', 'Anggota Dewan Pers Sebagai: Anggota Tahun: 2000 - 2003', 'Penasehat Ahli Kapolri Sebagai: Penasehat Tahun: 1999 - 2014', 'Konsultan PT Arun Sebagai: Tahun: 1989 - 1994', 'Kadin Indonesia Komite Cina Sebagai: Staf Ahli Tahun: 1985 - 1986', 'Penasehat Presiden Urusan Aceh Sebagai: Penasehat Tahun: - '],
'Organizational': ['BAKOM PKB Sebagai: Ketua Tahun: 1990 - 1995', 'PPI & IASI Jerman Sebagai: Ketua Tahun: 1976 - 1982', 'Ketua Warga SMP & Ketua Osis SMA Sebagai: Tahun: 1965 - 1968', 'KAPPI Daerah Itimewa Aceh Sebagai: Ketua Tahun: - 1968'],
'Movement': ['KAPPI Aceh - Ketua Tahun: - 1968']
}