Files
Input_to_route/places_from_xlsx.py

7 lines
304 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import pandas as pd
# Читаем конкретный лист из Excel
df = pd.read_excel('cultural_objects_mnn_final.xlsx', sheet_name='list1')
# Сохраняем в JSON с красивым форматированием
df.to_json('output.json', orient='records', force_ascii=False, indent=4)