# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: 'Python 3.8.5 64-bit (''Mwansa'': virtualenv)'
#     metadata:
#       interpreter:
#         hash: 2c3c5b7e521ed385cd317e5adc75c961fe301f41d1ed6ee19f28764a4ab100bf
#     name: python3
# ---

# +
# Dependencies and Setup 
import pandas as pd
import os
import sys

import datetime  
def _getToday(): return datetime.date.today().strftime("%Y%m%d")


# -

# Define path to csv file 
cities_file=os.path.join('.','resources','cities.csv') 
cities_file

# +
# Read in csv file and convert to dataframe 
# Read file and define it as 'file_cities'
file_cities=pd.read_csv(cities_file) 

# Create dataframe
cities_df=pd.DataFrame(file_cities)

# Columns to display in dataframe.
cities_df=cities_df[["City_ID","City", "Country", "Lat", "Lng", "Date", "Cloudiness", "Humidity", "Max Temp", "Wind Speed"]] 

# Display dataframe output
cities_df.head()
# -

# output data frame to html format
cities_df.to_html('./cities.html', index=False)



StarcoderdataJupyterScriptsDedupFiltered