Python으로 하는 Financial Forecasting
Victoria Clark
CGMA Financial Analyst
날짜 형식이 다를 수 있습니다!
다음 작업에서 문제가 발생할 수 있습니다:
순서 없는 키-값 쌍
예시:
dictionary = {01: 'Jan'}

| 지시자 | 의미 | 예시 |
|---|---|---|
| %d | 0으로 채운 두 자리 일 | 01, 02, …, 31 |
| %b | 로케일 약식 월 이름 | Jan, Feb, …, Dec |
| %B | 로케일 전체 월 이름 | January, …, |
| %m | 0으로 채운 두 자리 월 | 01, 02, …, 12 |
| %y | 세기 없는 두 자리 연도 | 00, 01, …, 99 |
| %Y | 네 자리 연도 | 1988, 2001, 2013 |
# Example: 19-02-2018 will be written:
('19-02-2018', '%d-%m-%Y')
iteritems() 함수# Create dictionary with strings as keys
# and ints as values
wordFrequency = {
"Hello" : 7,
"hi" : 10,
"there" : 45,
"at" : 23,
"this" : 77
}
# Iterate over dictionary using for loop
for key in wordFrequency:
value = wordFrequency[key]
print(key, " :: ", value)
Hello :: 7
there :: 45
at :: 23
this :: 77
hi :: 10
Python으로 하는 Financial Forecasting