250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 지마켓
- 幼稚园杀手(유치원킬러)
- Websocket
- 게시판 만들기
- word2vec
- Python
- 과학백과사전
- 토픽추출
- Gmarket
- RESFUL
- lda
- 파이썬
- spring MVC(모델2)방식
- db
- r
- java
- tomoto
- oracle
- Topics
- pytorch
- jsp 파일 설정
- 코사인 유사도
- test
- 크롤링
- 네이버뉴스
- 방식으로 텍스트
- (깃)git bash
- 이력서
- 자바
- mysql
Archives
- Today
- Total
무회blog
python , excel, csv, read, write 본문
import encodings
from typing import Sequence
from pandas import concat
from conF_01 import *
def read_AllSheet_excel():
dfe= pd.read_excel(read_file+'.xlsx', sheet_name=None)
rtn_df = concat(dfe)
return rtn_df
def read_excel():
rtn_df= pd.read_excel(read_file+'.xlsx', sheet_name=0)
return rtn_df
def write_csv(dfd):
# dfd = dfd.to_csv(write_file+'.csv')
dfd = dfd.to_csv(write_file+'.csv', encoding='utf-8')
return dfd
def write_excel(dfd):
dfd = dfd.to_excel(write_file + '.xlsx', sheet_name=0)
return dfd
if __name__ == "__main__":
print('test07')
path = 'C:/app/08.Configuration/01.Config_Data/'
add_path = 'Write_Csv_Xlsx/'
read_file_name = '220630_Custom_filed02'
write_file_name = 'write_220630_Custom_filed02'
read_file = path + read_file_name
write_file = path + add_path + write_file_name
rtn_df = read_excel()
df = write_csv(rtn_df)
print(df)
'Python' 카테고리의 다른 글
ChunKai (0) | 2022.06.27 |
---|---|
XiuQi (0) | 2022.06.27 |
# python ,정규식, 여러줄 , or 절 사용시 용이 (0) | 2022.06.08 |
html 태그에서 특정 class 속성값이 있으면 1 없으면 0 인 소스를 짠다 .(None/Null 체크) (0) | 2022.06.04 |
Anaconda, 설치된 ,라이브러리 확인 (0) | 2022.06.04 |
Comments