- Joined
- Oct 14, 2022
- Messages
- 1
- Reaction score
- 0
I need a detailed step-by-step guide for someone who's never written a script using Python, to run in Windows Powershell, for converting KML to CSV files.
The idea is for another department who does not know how to code be able to navigate within the folder the KMZ file is in so that they can simply run it and convert the file.
I have this started code, but I am lost and keep Googling and starting different codes with no success:
#-------------------------------------------------------------------
# Run this in the Windows Powershell
# Navigate to where your file is
# ls to see your folders
# cd _________ to go where you want to go
# Import pandas
import pandas as pd
# Libraries from tkinter
from tkinter import Tk
from tkinter import *
from tkinter import filedialog
from tkinter.filedialog import askopenfilename
# To upload file
Tk().withdraw()
file = askopenfilename()
print("File Uploaded:", str(file))
#-------------------------------------------------------------------
TIA!
The idea is for another department who does not know how to code be able to navigate within the folder the KMZ file is in so that they can simply run it and convert the file.
I have this started code, but I am lost and keep Googling and starting different codes with no success:
#-------------------------------------------------------------------
# Run this in the Windows Powershell
# Navigate to where your file is
# ls to see your folders
# cd _________ to go where you want to go
# Import pandas
import pandas as pd
# Libraries from tkinter
from tkinter import Tk
from tkinter import *
from tkinter import filedialog
from tkinter.filedialog import askopenfilename
# To upload file
Tk().withdraw()
file = askopenfilename()
print("File Uploaded:", str(file))
#-------------------------------------------------------------------
TIA!