본문 바로가기

분류 전체보기402

3. High-Speed Scientific Computing UsingNumPy • Introduction to NumPy • Creating NumPy n-dimensional arrays (ndarrays) • Data types used with NumPy arrays • Indexing of ndarrays • Basic ndarray operations • File operations on ndarrays 2023. 2. 14.
2. Exploratory Data Analysis in Python Steps in EDA Here is a list of steps involved in EDA : • Loading the necessary libraries and setting them up • Data collection • Data wrangling/munging • Data cleaning • Obtaining descriptive statistics • Visual inspection of the data • Data cleaning • Advanced visualization techniques %matplotlib inline ! pip install mpld3 import numpy as np import pandas as pd from scipy import stats import se.. 2023. 2. 13.
1. 개요 2023. 2. 13.
[Python] type hint 1. 내장함수 type 이용 >>> a_string_variable = "Hello, world!" >>> type(a_string_variable) >>> a_string_variable = 42 >>> type(a_string_variable) 2. mypy 패키지 사용( Third-partylibraries ) 1) 설치 ( 명령 프롬프트 이용 ) - 기본 방법 : python -m pip install mypy - conda tool 이용 방법 : conda install mypy # anaconda등을 설치하면 프로그램 목록에서 명령프롬프트가 동시에 설치 됨을 확인할 수 있다. 2) 파일 준비 - 파일 저장 위치 : C:\Users\User01\source\repos\oop_test\main.p.. 2022. 10. 24.
library sys pickle os shutil glob tempfile time calendar random webbrowser 2022. 10. 23.
내장함수 1. 숫자형 자료형 관련 abs(x) : 숫자의 절댓값 반환 >>> abs(12.5) # 12.5 >>> abs(-3.11) # 3.11 divmod( a, b ) : a를 b로 나눈 몫과 나머지를 튜플 형태로 반환 >>> divmod(12,7) # (1, 5) round(number[, ndigits]) : 숫자를 입력받아 반올림해 주는 함수 >>> round(4.6) # 5 >>> round(4.2) # 4 >>> round(5.678, 2) # 5.68 pow(x, y) : x의 y 제곱한 결괏값을 반환 >>> pow(2, 4) 16 >>> pow(3, 3) 27 2. 자료형 변환 str / list / tuple / set int : 문자열 형태의 숫자나 소수점이 있는 숫자 등을 정수 형태로 돌려.. 2022. 10. 23.
사용자 정의 Signal 객체지향 PyQt5 예 Event Signal 버튼의 클릭 행위 : 버튼 clicked Handler Slot 버튼 클릭시 수행할 작업을 지정한 method [주의] pyQtSignal 객체를 인스턴스 변수로 만드는 것이 아니라 클래스 변수로 만들어야 한다. import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import pyqtSlot, QObject, pyqtSignal # 사용자 정의 시그널 사용을 위한 클래스 정의 class CustomSignal(QObject): signal = pyqtSignal(int, str) # 반드시 클래스 변수로 선언할 것 def run(self): tempstr = "emit으로 전달" for i in range.. 2022. 4. 30.
병렬처리 10. 동시성 프로그래밍 (Concurrency Programming) 이번 장에서는 파이썬으로 Concurrency(동시성) 프로그래밍을 다룹니다. wikidocs.net 파이썬(python) Multiprocessing 사용법 멀티 프로세싱을 활용하면 여러 작업을 별도의 프로세스를 생성 후 병렬처리해서 더 빠르게 결과를 얻을 수 있다. 멀티 프로세싱을 잘 활용하면 멀티코어의 CPU 장점을 잘 살릴 수 있지만, 병렬 light-tree.tistory.com [Python/파이썬] PyQt5 - 사용자 정의 시그널(Custom Signal)과 Emit 사용법 1편 : 2021.03.06 - [코딩/Python] - [Python/파이썬] PyQT5 및 QT Designer 소개, .ui 파일 .py로 변.. 2022. 4. 29.
Visual Studio 2022 단축키 바로 가기 키 - Visual Studio (Windows) 다양한 명령과 창에 액세스할 수 있는 Visual Studio 기본 바로 가기 키에 대해 알아봅니다. docs.microsoft.com 2022. 4. 27.