| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- word2vec
- lda
- Gmarket
- 파이썬
- Websocket
- spring MVC(모델2)방식
- Topics
- test
- jsp 파일 설정
- 코사인 유사도
- RESFUL
- db
- 네이버뉴스
- 게시판 만들기
- mysql
- 이력서
- 자바
- 방식으로 텍스트
- 토픽추출
- 과학백과사전
- 크롤링
- Python
- pytorch
- 지마켓
- oracle
- (깃)git bash
- tomoto
- r
- 幼稚园杀手(유치원킬러)
- java
- Today
- Total
목록Python (125)
무회 Blog
-사용코드 txt = 'Show me the money.' word_1 = txt.count('S') word_2 = txt.count('o') word_3 = txt.count('m') print(word_1) print(word_2) print(word_3) Series 의 행 개수를 셀 때 s.size 와 같이 뒤에 () 가 없다는 것 조심해야 겠습니다.그리고 > count()는 Null 값이 아닌 행(count Non-null rows)만 세며, > size() 는 Null 값인 행도 모두 포함해서 행(size of all rows)을 센다 는 것도 유념하면 좋겠습니다. 구분 pandas DataFrame (df) pandas Series (s) 행 개수 세기 (row count) len(df) ..
보호되어 있는 글입니다.
import pandas as pd import numpy as np import time import re # data = pd.read_csv("./testTag001.csv", names=["subTag"]) data = pd.read_csv("./기타/testYY001.csv", names=["subTag"]) data['cd']=data['subTag'].str.replace('','@') # data['cda']=data['subTag'].str.replace('','@') # data[t] = data['cd'].str.split('@').str[0] data['a'] = data['cd'].str.split('@').str[0] data['b'] = data['cd'].str.split('..
pandas 가 Test 일 때 : Test.to_csv('sample00.csv', encoding="euc-kr") print("successCsv") Test.to_excel('paChongA01.xlsx') print("successExcel")