Created
December 28, 2020 10:20
-
-
Save lewiuberg/229951b55913bb9a18b94765a2569ee8 to your computer and use it in GitHub Desktop.
Active Airport code 06
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path = "df_geo.csv" | |
read = True | |
if read: | |
if path_checker(path): | |
df = pd.read_csv(path) | |
if "date" in df: | |
df["date"] = pd.to_datetime(df["date"]) | |
else: | |
if df is None: | |
print("You need a DataFrame to export.") | |
else: | |
df_location_data(df=df, search_col="airport") | |
df.to_csv(f'{path}', index=False) | |
df.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment