일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- 숫자빼고 중복되는 코드동작법
- 파이썬
- #K-means #Clustering
- 구글 지오코드
- 카카오APi
- #비정형#카카오api#api#크롤링
- #크롤링 #웹문서
- #위도#경도#비정형데이터#크롤링
- 셀레니움
- #비정형 데이터 #네이버 #지도 #크롤링
- 웹매크로 #세잔느
- 웹크롤링
- 파이썬 셀레니움
- 코딩
- 위도경도
- Today
- Total
목록Data Analysis/Python (38)
지방이의 Data Science Lab
test2_act['week'] = np.floor((test2_act['day'] -1)/ 7 +1 ) temp['dayofweek'] = temp['day'] % 7 + 1
def resumetable(df): print(f"Dataset Shape: {df.shape}") summary = pd.DataFrame(df.dtypes,columns=['dtypes']) summary = summary.reset_index() summary['Name'] = summary['index'] summary = summary[['Name','dtypes']] summary['Min'] = df.min().values summary['Max'] = df.max().values summary['Missing'] = df.isnull().sum().values summary['Uniques'] = df.nunique().values return summary train_label = pd..
temp = pd.merge(final, train_activity.groupby('acc_id')['npc_kill'].sum().to_frame('is_npc_kill').reset_index(), on ='acc_id', how='left') temp['is_npc_kill'] = np.where(temp['is_npc_kill']==0, 1, 0)

import matplotlib.pyplot as plt import matplotlib.image as mpimg image = mpimg.imread("map.png") plt.figure(figsize = (100,50)) plt.imshow(image) #plt.show()
1 2 3 4 5 6 7 from sklearn.model_selection import train_test_split from sklearn.model_selection import GroupShuffleSplit train_inds, test_inds=next(GroupShuffleSplit(test_size=.2,n_splits=2,random_state=7).split(data,groups=data['acc_id'])) train=data.iloc[train_inds] test=data.iloc[test_inds] Colored by Color Scripter
1 2 3 df = df.astype({'a':np.int32, 'b':np.float32}) df['acc_id'].astype('int64',inplace = True) manu_y['신용등급'] = pd.to_numeric(manu_y['신용등급'])