Keracon
-
#2. Pandas 함수 정리Keracon 2019. 10. 15. 14:27
* 파일 열기 df = pd.read_csv('파일명') * 특정 열의 데이터 추출 df.loc[:, 'result']: result 행의 모든 데이터 추출 df.loc[:10, 'result']: result 행의 데이터 처음부터 10번째행까지 추출 * 새로운 파일로 쓰기 a.to_csv('파일명', index=False) * 새롭게 파일 만들기 file=open("만들파일명", 'w', newline='', encoding='utf-8-sig') wr = csv.writer(file) header = ["ID", "번역"] wr.writerow(header) # 행 작성하기 for i in range(count): text = df['Image_Content_txt_result'][i] transla..
-
#1. git fork & rebaseKeracon 2019. 9. 28. 17:33
1) fork 해 올 repository(예시는 https://github.com/Keracorn/HashTag)에서 상단 뒤 fork 버튼을 눌러 내 repository에 추가한다. 2) 추가하고 나면 다음과 같이 내 repository에 추가가 된다.(https://github.com/hyunbul/HashTag.git) 3) git clone (예시에서는 git clone https://github.com/hyunbul/HashTag.git)으로 파일들을 받아온다. 4) upstream을 추가한다. 이때 주소는 내 repository가 아니라 fork 했던 원 repository이다(예시 git remote add upstream https://github.com/Keracorn/HashTag.gi..