pandas#0 쉽게 잊는 것들 링크로 모아보기

Clay Ryu's sound lab·2022년 3월 30일
0

Framework

목록 보기
2/48

iterrows

index와 row를 가져온다. enumerate처럼 쓰이는듯?

https://rfriend.tistory.com/601

데이터 프레임 txt로 저장하기

nlp에서 인풋에 txt를 사용할 때가 있다.

https://mizykk.tistory.com/71

df.index df.columns

index를 뽑거나 columns를 뽑아준다. 특이한 점은 index객체라는 것인데 일반 array와의 차이를 모르겠다. 슬라이싱이 똑같다.

https://blog.naver.com/PostView.nhn?blogId=nackji80&logNo=221643048859&parentCategoryNo=&categoryNo=53&viewDate=&isShowPopularPosts=false&from=postView

df.values

Return a Numpy representation of the DataFrame.
그래서인지 뽑으면 array로 나온다.

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.values.html

Error tokenizing data

csv 파일을 읽을 때 파일이 잘 정제가 되어있지 않아서 각 데이터 마다 가지는 열의 개수가 다를경우에 발생한다. DataFrame으로 만들어서 한번 거치면 해결이 된다.

https://wookidocs.tistory.com/80

profile
chords & code // harmony with structure

0개의 댓글