Programming Language

Programming Language/Python

[Python] 해당 날짜가 주식 개장일인지 확인하는 방법

라이브러리 설치 pip install exchange_calendars 코드 import exchange_calendars as ecals XKRX = ecals.get_calendar("XKRX") print(XKRX.is_session("2022-05-04")) print(XKRX.is_session("2022-05-05")) print(XKRX.is_session("2022-05-06")) 결과 5월 5일은 어린이날이여서 개장하지 않았음을 알 수 있다.

Programming Language/Python

[Python] UserWarning: Workbook contains no default style, apply openpyxl's default warn("Workbook contains no default style, apply openpyxl's default")

파이썬 사용중 다음과 같은 에러가 발생 UserWarning: Workbook contains no default style, apply openpyxl's default warn("Workbook contains no default style, apply openpyxl's default") 원본 코드는 다음과 같다. import pandas as pd df = pd.read_excel('./stock-data/kospi_20220520.xlsx') print(df) 다음과 같이 수정하면 경고 뜨지 않음 import pandas as pd import warnings warnings.simplefilter("ignore") df = pd.read_excel('./stock-data/kospi_20220..

Programming Language/Python

[Kaggle] London Bike, RNN and LSTM

https://www.kaggle.com/datasets/hmavrodiev/london-bike-sharing-dataset London bike sharing dataset Historical data for bike sharing in London 'Powered by TfL Open Data' www.kaggle.com import numpy as np import pandas as pd import matplotlib.pyplot as plt %matplotlib inline import os for dirname, _, filenames in os.walk('/kaggle/input'): for filename in filenames: print(os.path.join(dirname, file..

Programming Language/Python

[Kaggle] 런던 자전거 데이터 세트, 시계열 딥러닝 전 데이터 전처리 정리

https://www.kaggle.com/datasets/hmavrodiev/london-bike-sharing-dataset London bike sharing dataset Historical data for bike sharing in London 'Powered by TfL Open Data' www.kaggle.com import numpy as np import pandas as pd import matplotlib.pyplot as plt %matplotlib inline import os for dirname, _, filenames in os.walk('/kaggle/input'): for filename in filenames: print(os.path.join(dirname, file..

Programming Language/Python

[Kaggle] 런던 자전거 데이터 세트, 시계열 딥러닝 전 데이터 전처리해보기

https://www.kaggle.com/datasets/hmavrodiev/london-bike-sharing-dataset London bike sharing dataset Historical data for bike sharing in London 'Powered by TfL Open Data' www.kaggle.com import numpy as np import pandas as pd import matplotlib.pyplot as plt %matplotlib inline import os for dirname, _, filenames in os.walk('/kaggle/input'): for filename in filenames: print(os.path.join(dirname, file..

Programming Language/Python

[Kaggle] 런던자전거 - 머신러닝, 딥러닝 모델 비교해보기

https://www.kaggle.com/datasets/hmavrodiev/london-bike-sharing-dataset London bike sharing dataset Historical data for bike sharing in London 'Powered by TfL Open Data' www.kaggle.com import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import missingno as msno import os for dirname, _, filenames in os.walk('/kaggle/input'): for filename in filenames: prin..

Programming Language/Python

[Kaggle] London Bike Sharing Dataset 딥러닝 모델 만들어보기

https://www.kaggle.com/datasets/hmavrodiev/london-bike-sharing-dataset London bike sharing dataset Historical data for bike sharing in London 'Powered by TfL Open Data' www.kaggle.com import numpy as np import pandas as pd import os for dirname, _, filenames in os.walk('/kaggle/input'): for filename in filenames: print(os.path.join(dirname, filename)) import matplotlib.pyplot as plt import seabo..

Programming Language/Python

[Kaggle] London Bike Sharing Dataset 데이터 전처리 해보기

https://www.kaggle.com/datasets/hmavrodiev/london-bike-sharing-dataset London bike sharing dataset Historical data for bike sharing in London 'Powered by TfL Open Data' www.kaggle.com import numpy as np import pandas as pd import os for dirname, _, filenames in os.walk('/kaggle/input'): for filename in filenames: print(os.path.join(dirname, filename)) import matplotlib.pyplot as plt import seabo..

Programming Language/Python

[Python] 데이터프레임의 구조, 타입, 컬럼 확인하는 방법

df = pd.read_csv('/kaggle/input/london-bike-sharing-dataset/london_merged.csv') df.head() print('\n', df.shape) print('\n', df.dtypes) print('\n', df.columns)

박경태
'Programming Language' 카테고리의 글 목록 (13 Page)