Python: Read Write JSON

In this article, I will be showing how to read data from a JSON file and write data to a new JSON file using Python programming language. Suppose, I have the following JSON data which is saved in a file named sample-1.json. Download: sample-1.json {"votes": {"funny": 25, "useful": 59, "cool": 29}, "user_id": "1", "name": "User … Read more

Python: Read Write CSV

In this article, I will be showing how to read data from a CSV file and write data to a new CSV file using Python programming language. Here’s a scenario: Suppose, I have a CSV file with 3 columns (user_id, item_id, and star_rating). It has data of 100 users. Each user has rated 20 different … Read more