본문 바로가기
728x90

All Posts112

[error]row size too large. the maximum row size for the used table type, not counting blobs, is 8126. this includes storage overhead, check the manual. you have to change some columns to text or blobs. 📌 에러 내용row size too large. the maximum row size for the used table type, not counting blobs, is 8126. this includes storage overhead, check the manual. you have to change some columns to text or blobs. 📌 table를 변경 하려고 할때 생기는 오류. ( 테이블 생성, 삭제 / 컬럼 추가, 삭제, 수정 )ALTER TABLE [테이블명] DROP COLUMN [컬럼명];mysql에서 row 사이즈가 제한이 되어 있어서 dataType이 varchar로 구성이 되어 있는 경우에 해당하는 오류가 발생 💡 해결 방안그래서 varchar를 BLOB나 .. 2024. 7. 23.
[Python] Pandas / DataFrame (loc,isin) 💡 loc loc는 DataFrame에서 특정 조건을 만족하는 데이터를 선택하거나, 특정 행과 열을 선택할 때 사용하는 함수입니다. loc를 사용할 때는 대괄호 안에 조건을 명시합니다. 이 때, 조건은 행을 선택하는 조건과 열을 선택하는 조건을 쉼표로 구분해서 사용할 수 있습니다. 여기서 행 조건에는 불리언 배열, 레이블의 리스트, 단일 레이블 등을 사용할 수 있으며, 열 조건에는 열의 이름을 나열한 리스트, 단일 열 이름 등을 사용할 수 있습니다. DataFrame.loc[행 조건, 열 조건] 💡 isin isin은 주어진 DataFrame이나 Series의 각 요소가 주어진 값들의 리스트에 속하는지 여부를 불리언 값으로 반환하는 함수입니다. 이를 통해 특정 값들을 포함하는 행이나 열을 쉽게 찾아낼 수.. 2024. 3. 15.
[mySql ERROR] the maximum row size for the used table type the maximum row size for the used table type, not counting blobs, is 8126. this includes storage overhead, check the manual. you have to change some columns to text or blobs **임시 해결 방법 set innodb_strict_mode = 0 2024. 2. 14.
파이썬 기초 문자열 처리 문자열 작은 따옴표(’ ’)=큰따옴표(” ”)=큰따옴표 3개(””” ”””) → 동일하게 출력 #문자열 sentence ='작은 따옴표' print(sentence) sentence2 ="큰 따옴표" print(sentence2) sentence3 ="""큰 따옴표 3개""" print(sentence3) 슬라이딩 → 필요한 정보만 가져오는 것 연속적인 객체들에(예: 리스트, 튜플, 문자열) 범위를 지정, 선택해서 객체들을 가져오는 방법 jumin ="240102-1234567" print("성별 :" + jumin[7]) print("연 :" + jumin[0:2]) # 0번부터 2직전까지 -> 0,1번째 값만 가져오기 print("월 :" + jumin[2:4]) print("일 :" + jumin[.. 2024. 1. 24.
VSCODE 파이썬 설치 📌 파이썬 다운로드 https://www.python.org/downloads/ Download Python The official home of the Python Programming Language www.python.org 📌 vscode 다운로드 https://code.visualstudio.com/ Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite.. 2024. 1. 23.
Python 파이썬 기초 자료형 , 문자열, 주석 📌 자료형 print(5) #정수 print(-15) #음수 print(3.14) #실수 print(1+2) #연산 print(2*5) #곱하기 print(3*(3+5)) #우선순위 연산 📌 문자열 print('풍선') #그대로 출력하세요. print("나비") #그대로 출력하세요. print("집에 가고 싶다") print("집에 가고 싶다" * 2) #문자열과 정수를 섞어서 계산 출력 가능하다. 📌 boolean 자료형 (참 / 거짓) print(5>10) #False print(510)) #True 💡 vscode 주석 단축키 🔹 Window : CTRL + / 🔹 Mac OS : Command + / #은 한줄 주석 ''' 작은 따옴표 3개는 여러문장 주석 ''' 2024. 1. 23.
728x90
반응형