라이브러리 설치 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일은 어린이날이여서 개장하지 않았음을 알 수 있다.
파이썬 사용중 다음과 같은 에러가 발생 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..
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..
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..
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..
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..
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..
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..