This file contains hidden or 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
| import pandas as pd | |
| # 파일리스트 | |
| data = ['./hk1.csv','./hk2.csv','./ss.csv'] | |
| # 데이터 로드 | |
| df = pd.read_csv(data[0]) | |
| df1 = pd.read_csv(data[1]) | |
| df2 = pd.read_csv(data[2]) |
This file contains hidden or 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
| import pandas as pd | |
| # 데이터 로드 | |
| df1 = pd.read_csv('weather_forecast_hankyeong_4hours.csv') | |
| df2 = pd.read_csv('weather_forecast_seongsan_4hours.csv') | |
| # 데이터 컬럼 설정 | |
| df1 = df1[['tgt_beg', 'temperature','humidity', 'windspeed', 'winddirection', '6hrain', '6hsnow', 'rainprobability', 'raintype', 'seawave', 'skystatus']] | |
| df1.columns = ['time', 'h_temperature','h_humidity', 'h_windspeed', 'h_winddirection', 'h_6hrain', 'h_6hsnow', 'h_rainprobability', 'h_raintype', 'h_seawave', 'h_skystatus'] |