본문 바로가기
반응형

컴퓨터/Python31

[Python] 파이썬, Pandas 32bit 설치 오류 정리 파이썬 32bit에서 pandas를 설치하는 경우 오류 1. Build Tools for Visual Studio 설치 필요https://pandas.pydata.org/docs/development/contributing_environment.html Creating a development environment — pandas 2.2.2 documentationCreating a development environment To test out code changes, you’ll need to build pandas from source, which requires a C/C++ compiler and Python environment. If you’re making documentation chan.. 2024. 5. 4.
[Python] 파이썬, 윈도우 화면에 이미지 그리기 1. 이미지 그리기 import win32gui from PIL import Image, ImageWin class DrawOnDesktop: def __init__(self): self.hwnd = win32gui.GetDesktopWindow() self.hdc = win32gui.GetDC(self.hwnd) def draw_image(self, image_path, x, y): # 이미지 열기 image = Image.open(image_path) # 이미지를 바탕화면의 DC에 복사 img_dc = ImageWin.Dib(image) img_dc.draw(self.hdc, (x, y, x + image.width, y + image.height)) # 이미지 파일 경로 (.jpg 이미지) imag.. 2024. 4. 22.
git 명령어 1. git 다운로드 https://www.git-scm.com/downloads Git - Downloads Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp www.git-scm.com git --version 2. git 명령어 git init 로컬 저장소 생성 git clone https://g.. 2023. 5. 8.
[Python] 파이썬, 서울시 버스도착정보 공공데이터 1. 공공데이터 포털 https://www.data.go.kr/tcs/dss/selectApiDataDetailView.do?publicDataPk=15000314 서울특별시_버스도착정보조회 서비스 특정 정류소에 대한 버스 도착예정 정보 제공 특정 정류소의 모든 버스 도착정보는 "서울특별시_정류소조회 서비스" 에서 제공 www.data.go.kr 공공데이터포털에 로그인 후, OpenAPI 활용신청을 합니다. (사용승인까지 시간이 걸릴 수 있습니다. 특히 주말의 경우 승인이 지연되었습니다.) 2. OpenAPI 조회 import requests import json from pandas import json_normalize import pandas as pd key = "인증키를 입력해주세요" bus_s.. 2023. 4. 17.
반응형