Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Grouping csv by name
Post: RE: Grouping csv by name

Thanks for the reply. My expected result is like { "name": "john", "email": "example.com", "items": [ { "phone": "123", "info": { "date": "26/11/18", ...
terrydidi General Coding Help 8 3,906 Jan-14-2019, 12:29 AM
    Thread: Grouping csv by name
Post: RE: Grouping csv by name

Thanks for reply updated CSV file name,email,date,phone john,example.com,26/11/18,123 johnny,hello.com,12/08/18,123456I'm using the defaultdict import csv from collections import defaultdict result2...
terrydidi General Coding Help 8 3,906 Jan-13-2019, 11:05 PM
    Thread: Grouping csv by name
Post: RE: Grouping csv by name

Thanks for reply. CSV file name,email,date,phone john,example.com,26/11/18,123 john,hello.com,12/08/18,123456
terrydidi General Coding Help 8 3,906 Jan-13-2019, 10:12 PM
    Thread: Grouping csv by name
Post: Grouping csv by name

I'm converting the csv format to json format. Now I generated the json structure but I need to group the data by name. import csv result = [] with open("student.csv", "r") as csv_ledger: for row...
terrydidi General Coding Help 8 3,906 Jan-13-2019, 09:50 PM
    Thread: Python convert csv to json with nested array without pandas
Post: RE: Python convert csv to json with nested array w...

Thanks for your reply. The 'id' must exactly same with the header in csv. It's case sensitive. I updated the content date, ref_num, description,debit,credit,coa_code, coa_name 2018-12-28, P...
terrydidi General Coding Help 2 9,665 Jan-12-2019, 02:25 AM
    Thread: Python convert csv to json with nested array without pandas
Post: Python convert csv to json with nested array witho...

I'm trying to insert new array inside the array but I'm not sure where can I append the data. Csv table date, id, description, name, code 2016-07-01, S56202, Class A, Jacky,...
terrydidi General Coding Help 2 9,665 Jan-11-2019, 03:39 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020