본문 바로가기

전체 글96

2884 ## 2884 알람 시계h, m = input().split()h = int(h)m = int(m)if (h*60 + m) 2024. 6. 20. 22:40
14691 ## 14691 사분면 고르기x = int(input())y = int(input())if x>0 and y>0 : print('1')elif x0: print('2')elif x 2024. 6. 20. 22:11
2444 ## 2444 별찍기 - 7n = int(input())for i in range(1, 2*n): if i  백준에서 왜 틀렸다고 나오는지 모르겠다 2024. 6. 17. 23:22
2439 ## 2438 별찍기n = int(input())for i in range(1, n+1): print('*' * i) 2024. 6. 11. 21:29
25304 ## 25304 영수증x = int(input()) ## 총금액n = int(input()) ## 물건 종류tot = list()for i in range (1, n+1): a, b = input().split() a = int(a) b = int(b) tot_i = a*b tot.append(tot_i)if x == sum(tot): print('Yes')else: print('No') 2024. 6. 11. 21:12
8393 ## 8393 합n = int(input())sum = 0for i in range(1, n+1): sum = i + sum i = i + 1print(sum) 2024. 6. 10. 21:01
10950 ## 10950 A+B-3cnt = int(input())A = list()B = list()for i in range(0, cnt): A_i, B_i = input().split() A_i = int(A_i) B_i = int(B_i) A.append(A_i) B.append(B_i)for j in range(0, cnt): print(A[j] + B[j]) 2024. 6. 10. 19:53
2739 ## 2739 구구단dan = int(input())for i in range(1, 10): print(dan, '*', i, '=', dan*i) 2024. 6. 10. 19:52
[TS] TypeError: float() argument must be a string or a real number, not 'method' - 문제 상황의사결정나무 학습 수행 시 위와같은 에러 발생 TypeError: float() argument must be a string or a real number, not 'method'  - 해결 방법결측치 처리 시 평균값 대체 함수 mean 호출 구문에서 () 괄호를 생략오류난 구문이 아닌 관련 구문 모두 훑어보는 검수 작업 필요## 결측치 처리'''d_mean = df["Age"].meandf["Age"].fillna(d_mean, inplace=True)'''d_mean = df["Age"].mean()df["Age"].fillna(d_mean, inplace=True) 2024. 5. 29. 12:35