Ejemplo 1: convertir csv a json python
import pandas as pd
df = pd.read_csv (r'Path where the CSV file is savedFile Name.csv')
df.to_json (r'Path where the new JSON file will be storedNew File Name.json')
Ejemplo 2: json a csv
# call csvkit (which is a Python tool) to convert json to csv:
# https://csvkit.readthedocs.io/en/latest/
in2csv data.json > data.csv
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)