Skip to content

Python code helps convert several individual JSON files, locally, into one CSV. Additionally, this code allows the user to cherry-pick the field names from the JSON dataset.

Notifications You must be signed in to change notification settings

factmaven/json-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Convert JSON to CSV in Python

This Python code helps convert several individual JSON files, locally, into one CSV. Additionally, this code allows the user to cherry-pick the field names from the JSON dataset.

How to Use the Code

To run the code and get the expected output, use the following steps:

  1. Compile all JSON files into one folder, locally.
    • Note: there shouldn't be any other file types or sub-folders
  2. Open the Python script in your IDE.
  3. Set up the following variables based on your preferences:
    • file_path: Enter the path to the JSON and the filename without appending .json
    • key_list: Extract data from the defined key names
    • key_ignore: Key names to ignore separated by a vertical bar (|)

About

Python code helps convert several individual JSON files, locally, into one CSV. Additionally, this code allows the user to cherry-pick the field names from the JSON dataset.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages