SJBANG Repository
close
프로필 배경
프로필 로고

SJBANG Repository

  • 분류 전체보기 (99)
    • Python (41)
      • intro (5)
      • 데이터분석 (16)
      • 업무자동화 (7)
      • Django (2)
      • Flask (2)
      • Streamlit (2)
      • MachineLearning (4)
    • DB (10)
      • Oracle (10)
    • 보안 (25)
      • Android App (10)
      • 서버&네트워크 (11)
      • IOS (4)
    • Zendesk (1)
    • 코딩테스트연습 (10)
      • level1 (8)
      • level2 (1)
      • level3 (1)
    • 기타 (10)
      • 엑셀 (0)
      • R (1)
      • GIT (2)
      • 명령어 정리 (0)
      • IDE (0)
    • C (1)
      • intro (1)
  • 홈
  • Python
  • 보안
  • 코딩테스트

[Python] 대량의 업데이트 파일 일정한 파일 크기 당 배포 일정 수립

대량의 업데이트 파일을 일정한 파일 크기로 배포 일정을 수립하기 위한 코드 작성import pandas as pd # 판다스 importregion = input('지역 입력 : ')file_name = input('파일을 입력하세요 : ')file_path = input('파일 경로 : ') + '\\' + region +'\\'df = pd.read_csv(file_path+file_name, sep='\t')# int(df.shape[0])df['분할'] = 'null' # object형df['분할_int'] = 'null' # int형# Initialize the week counterweek = 1# Initialize the cumulative sumcumulative_sum = 0# Iter..

  • format_list_bulleted Python/업무자동화
  • · 2024. 8. 14.
  • textsms

[python] zipfile.ZipFile로 압축 해제 시 오류

작성 이유배포 전 압축 파일에 빈폴더가 있는지 확인하는 자동화 Tool 개발 시, zipfile 모듈을 사용했을 때 빈폴더를 파일로 압축해제하는 현상이 발생하여 원인 분석 후 해결 과정을 적재 1. 반디집(Bandizip)과 Python zipfile 모듈의 차이Python zip file1. 사용성 및 기능: Python의 zipfile 모듈은 파이썬 코드 내에서 직접 zip 파일을 생성하고, 읽고, 쓰고, 해제할 수 있는 기능을 제공합니다. 이는 프로그램 내에서 자동화된 작업이나 스크립트 작성을 용이하게 합니다.2. 프로그램 통합: 파이썬 코드 내에서 다른 데이터 처리 작업과 쉽게 통합될 수 있습니다.3. 제어와 유연성: 파일 압축 해제 과정에서 특정 파일을 선택적으로 해제하거나, 압축 해제된 파일을..

  • format_list_bulleted Python/업무자동화
  • · 2024. 7. 10.
  • textsms

[python] Selenium 웹크롤러 pyinstaller로 실행 파일 만들기

Chromdriver를 사용하도록 설정하기 if getattr(sys, 'frozen', False) and hasattr(sys, "_MEIPASS"): driver_path = os.path.join(sys._MEIPASS, "chromedriver.exe") driver = webdriver.Chrome() # print('running in a Pyinstaller bundle') else: driver = webdriver.Chrome() # print('running in a normal Python process') pyinstaller로 실행파일 생성 pyinstaller -w -F "파이썬 소스코드 경로"

  • format_list_bulleted Python/업무자동화
  • · 2024. 4. 5.
  • textsms

[Python] 폴더, 파일, ZIP 파일 목록 출력

폴더명 추출 # 폴더명 추출 for item in os.listdir(file_path+App): sub_folder = os.path.join(file_path+App, item) # 폴더경로 + 폴더명 sub_folder2 = os.path.join(item) # 폴더명만 if os.path.isdir(sub_folder): # print("Application_version = " + sub_folder2) print("Application = " + sub_folder2) 파일 열기 # 파일 열기 with open(file_path+App+App_txt, "r", encoding="utf-8") as file: file_content = file.read() print("Application_ve..

  • format_list_bulleted Python/업무자동화
  • · 2024. 1. 25.
  • textsms

[Python] Pyinstaller 실행파일 만들기

주의사항 : 동일한 인터프리터 내에 pathlib 라이브러리가 있을 시 pyinstaller 실행 불가 가상 환경 생성 conda create -n 가상환경명 python==파이썬버전 가상 환경 활성화 conda activate 가상환경명 Pyinstaller 설치 pip install pyinstaller Pyinstaller를 활용한 exe 설치 파일 만들기 pyinstaller Z:\999_sjbang\운영\versionCheck.py

  • format_list_bulleted Python/업무자동화
  • · 2024. 1. 24.
  • textsms
Python을 활용한 파일, 폴더명 읽기, 압축 파일 해제

Python을 활용한 파일, 폴더명 읽기, 압축 파일 해제

1. python으로 txt 파일 읽기 import os file_path = r"파일 경로" # 파일 열기 with open(file_path, "r", encoding="utf-8") as file: file_content = file.read() print(file_content) 2. python으로 폴더명 읽기 import os main_folder = r"폴더 경로" for item in os.listdir(main_folder): sub_folder = os.path.join(main_folder, item) # 폴더경로 + 폴더명 sub_folder2 = os.path.join(item) # 폴더명만 if os.path.isdir(sub_folder): # print(sub_folder) ..

  • format_list_bulleted Python/업무자동화
  • · 2024. 1. 19.
  • textsms
  • navigate_before
  • 1
  • 2
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (99)
    • Python (41)
      • intro (5)
      • 데이터분석 (16)
      • 업무자동화 (7)
      • Django (2)
      • Flask (2)
      • Streamlit (2)
      • MachineLearning (4)
    • DB (10)
      • Oracle (10)
    • 보안 (25)
      • Android App (10)
      • 서버&네트워크 (11)
      • IOS (4)
    • Zendesk (1)
    • 코딩테스트연습 (10)
      • level1 (8)
      • level2 (1)
      • level3 (1)
    • 기타 (10)
      • 엑셀 (0)
      • R (1)
      • GIT (2)
      • 명령어 정리 (0)
      • IDE (0)
    • C (1)
      • intro (1)
최근 글
인기 글
최근 댓글
태그
  • #엑셀함수
  • #판데스데이터정렬
  • #판다스 데이터 수정
  • #엑셀
  • #판다스 dropna
  • #판다스 fillna
  • #판다스 결측치
  • #리스트딕셔너리
  • #직장인엑셀
  • #판다스 sort_values
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바