파이썬 스터디 3주차(캐글)
https://youtu.be/aeaEISnjH2I 캐글 타이타닉 5. EDA - Age, Sex, Pclass(violinplot) f, ax = plt.subplots(1, 2, figsize=(18,8)) #사이즈가 18, 8인 도화지(f)를 만들고 ax를 1x2로 나눔(subplots) sns.violinplot('Pclass', 'Age', hue='Survived', data=df_train, scale='count', split=True, ax=ax[0]) ax[0].set_title('Pcalss and Age vs Survived') ax[0].set_yticks(range(0, 100, 10)) #df_train 데이터의 Pclass를 x축, Age를 y축에 두고 Survived에 따라..
파이썬 스터디 2주차(백준)
https://www.acmicpc.net/problem/2562 2562번: 최댓값 9개의 서로 다른 자연수가 주어질 때, 이들 중 최댓값을 찾고 그 최댓값이 몇 번째 수인지를 구하는 프로그램을 작성하시오. 예를 들어, 서로 다른 9개의 자연수 3, 29, 38, 12, 57, 74, 40, 85, 61 이 주어 www.acmicpc.net import sys nums = [] for i in range(9): a = int(sys.stdin.readline()) nums.append(a) print(max(nums)) print(nums.index(max(nums)) + 1) 9개의 서로 다른 자연수가 주어질 때, 이들 중 최댓값을 찾고 그 최댓값이 몇 번째 수인지를 구하는 프로그램 작성 > 리스트명..