-- TABLE SPACESELECT OWNER, INDEX_NAME, TABLE_NAME, TABLESPACE_NAME FROM ALL_INDEXES WHERE 1=1 AND OWNER = 'DB소유자' AND TABLESPACE_NAME = '테이블스페이스명'-- COMMENTSELECT * FROM ALL_COL_COMMENTS WHERE TABLE_NAME LIKE '%IAIF%' AND COMMENTS IS NULL AND OWNER = 'DB소유자'ORDER BY TABLE_NAME;-- COMMENT 추가COMMENT ON COLUMN "DB소유자"."테이블명"."칼럼명" IS 'comment명';
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) ..
chromedriver 설치 chrome 버전 확인 [설정] - [Chrome 정보]에서 확인 가능합니다 chrome 버전이 업그레이드 될때마다 버전에 맞는 driver를 맞춰주어야 합니다 최근 chromedriver 버전 : https://googlechromelabs.github.io/chrome-for-testing/#stable python - getChromeDriver.py from selenium import webdriver import chromedriver_autoinstaller import os # Check if chrome driver is installed or not chrome_ver = chromedriver_autoinstaller.get_chrome_version()...
실행 순서 1. 데이터 수집 2. 데이터 전처리 3. 훈련 모델 생성(fit) 4. 모델 검증(score) 5. 예측(predict) 1. 데이터 수집 임의 데이터 생성 # - 도미 길이와 무게 bream_length = [25.4, 26.3, 26.5, 29.0, 29.0, 29.7, 29.7, 30.0, 30.0, 30.7, 31.0, 31.0, 31.5, 32.0, 32.0, 32.0, 33.0, 33.0, 33.5, 33.5, 34.0, 34.0, 34.5, 35.0, 35.0, 35.0, 35.0, 36.0, 36.0, 37.0, 38.5, 38.5, 39.5, 41.0, 41.0] # - 도미 무게 bream_weight = [242.0, 290.0, 340.0, 363.0, 430.0, 45..
참고 : https://docs.djangoproject.com/en/5.2/intro/tutorial01/1. 가상환경 생성conda create -n 가상환경명 python==버전# 가상환경 활성화conda activate 가상환경명 2. Django 설치pip install django==장고 버전 3. 버전 확인python -m django --version # 장고 버전python --version # 파이썬 버전 4. 프로젝트 생성# 프로젝트 생성할 폴더 위치 진입 후 (cd 폴더경로)django-admin startproject app이름 project 이름예시)django-admin startproject myproject Django-APP 5. 서버 실행하기python manage...
import pandas as pd df = pd.read_excel('score.xlsx', index_col='지원번호') Column 수정 replace() df['학교'].replace({'북산고':'상북고', '능남고':'무슨고'}) *) 저장하려면 inplace = True 시행 lower() df['SW특기'] = df['SW특기'].str.lower() upper() df['SW특기'] = df['SW특기'].str.upper() 문자열 추가 df['학교'] = df['학교'] + '등학교' Column 추가 df['총합'] = df['국어'] + df['영어'] + df['수학'] + df['과학'] + df['사회'] df['결과'] = 'Fail' # 결과 Column 추가하고 전체 ..