inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

172만명의 커뮤니티!! 함께 토론해봐요.

pandas 2.2.2, xgboost 2.1.3 에러 해결 방법

미해결

[리뉴얼] 처음하는 파이썬 머신러닝 부트캠프 (쉽게! 실제 캐글 문제 풀며 정리하기) [데이터분석/과학 Part2]

xgboost 2.1.3 버전의 XGBRegressor 사용시 pandas 2.2.2에서는 pd.util.version이 제거되었으므로 "AttributeError: module 'pandas' has no attribute 'util'"에러 발생하여 xgboost 라이브러리 코드를 수정해야 함 경로: $ANACONDA3_HOME/lib/python3.12/site-packages/xgboost/data.py 수정 후 주피터 재시작 # 기존 def is_pd_sparse_dtype(dtype: PandasDType) -> bool: """Wrapper for testing pandas sparse type.""" import pandas as pd if hasattr(pd.util, "version") and hasattr(pd.util.version, "Version"): Version = pd.util.version.Version if Version(pd.__version__) >= Version("2.1.0"): from pandas import SparseDtype return isinstance(dtype, SparseDtype) from pandas.api.types import is_sparse return is_sparse(dtype) # 변경 def is_pd_sparse_dtype(dtype: PandasDType) -> bool: """Wrapper for testing pandas sparse type.""" import pandas as pd from pandas import SparseDtype return isinstance(dtype, SparseDtype)

  • python
  • 머신러닝
  • pandas
  • kaggle
while_ true_effort 댓글 1 좋아요 0 조회수 268

AWS 배포 시 CORS 에러

해결됨

[코드캠프] 부트캠프에서 만든 '완벽한' 프론트엔드 코스

"[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스강의" 를 수강하고 배포 부분을 이 강의를 수강하고 있는 수강생입니다. 고농축 강의에서 만든 포트폴리오를 aws에서 배포했을때에, CORS 에러가 다음과 같이 나는 문제가 있는데 어떻게 해결해야할까요? 찾아보니 백엔드에서 CORS 를 허용해야하거나 프론트에서 프록시를 사용하라고 되어있는데 어떻게 해결해야할지 모르겠네요

  • react
  • react-native
  • 하이브리드-앱
  • graphql
  • next.js
  • aws
  • cors
aa106206 댓글 2 좋아요 0 조회수 142

03_12_get_max_discount_price를 pop()으로 구현했어요

해결됨

38군데 합격 비법, 2026 코딩테스트 필수 알고리즘

1. 현재 학습 진도 몇 챕터/몇 강을 수강 중이신가요? 어떤 알고리즘을 학습하고 계신가요? 여기까지 이해하신 내용은 무엇인가요? 2. 어려움을 겪는 부분 어느 부분에서 막히셨나요? 코드의 어떤 로직이 이해가 안 되시나요? 어떤 개념이 헷갈리시나요? 3. 시도해보신 내용 문제 해결을 위해 어떤 시도를 해보셨나요? 에러가 발생했다면 어떤 에러인가요? 현재 작성하신 코드를 공유해주세요 def get_max_discounted_price(prices, coupons): if prices: prices.sort() if coupons: coupons.sort() discounted_prices = [] while prices and coupons: max_price = prices.pop() max_coupon = coupons.pop() discounted_prices.append(max_price * (100 - max_coupon) / 100) total_sum_prices = sum(discounted_prices) + sum(prices) return total_sum_prices 사실상 같은코드긴 한데, 혹시나해서 검증받고싶어서..

  • python
  • 코딩-테스트
  • 알고리즘
  • data-structure
박가 댓글 2 좋아요 0 조회수 129

환경 변수 vs gitignore

미해결

비전공자도 이해할 수 있는 CI/CD 입문·실전

중요한 값을 레포지토리에 노출시키고 싶지 않을 때 yml 파일을 gitignore에 포함시키는 방법을 쓰거나 환경 변수를 사용하여 노출을 막는 방법이 있는 것 같은데 둘 중에 아무거나 써도 상관없는건가요, 아니면 때에 따라 다른 방식을 써야하는건가요?

  • aws
  • docker
  • ci/cd
  • github-actions
  • aws-code-deploy
  • infrastructure
  • aws-ec2
yso829612 댓글 2 좋아요 0 조회수 141

[Ingress - Nginx 강의] Ingress 컨트롤러의 Service 로드밸런싱 관련 질문

미해결

대세는 쿠버네티스 (초급~중급편)

안녕하세요. 강사님 Ingress - Nginx 강의를 듣던 중 질문이 생겼습니다. 강의의 5분 20초 내용 을 보면, /svc-order URL로 접근을 해서 svc-order 서비스로 연결이 되는 내용이 나오는데요. Ingress rules 를 보면 path가 /order 일때, serviceName이 svc-order 로 연결이 되도록 되어있는데, 어떻게 /svc-order 로 접근을 해서 svc-order 서비스에 연결이 된 것인지 궁금합니다. 혹시 제가 이전에 공부한 내용이 부족하여, 해당 내용을 몰랐다면 어떤 부분을 다시 복습을 해야 할지도 알려주신다면 정말 감사하겠습니다.

  • docker
  • kubernetes
denia park 댓글 2 좋아요 0 조회수 124

azure storage에 데이터 폴더 업로드

해결됨

실전도커: 도커로 나만의 딥러닝 클라우드 컴퓨터 만들기

CV 딥러닝을 하려고 하는데요, 데이터를 업로드 하려고 하는데, 폴더째로 업로드가 안되는거같은데 방법이 있을까요?

  • python
  • 딥러닝
  • linux
  • docker
  • azure
  • 가상화
  • mlops
김태연 댓글 3 좋아요 0 조회수 254

requirements.txt 다운로드가 안끝나요

미해결

내 업무를 대신 할 파이썬(Python) 웹크롤링 & 자동화 (feat. 주식, 부동산 데이터 / 인스타그램)

requirements.txt파일을 다운하는데 지금 몇십분째 다운중인 거 같은데 이거 오류인가요?? 무슨 문제가 있는걸까요

  • python
  • 웹-크롤링
권태혁 댓글 2 좋아요 0 조회수 171

Django-Components의 0.128 세팅

미해결

파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트 (장고 4.2 기준)

최신 버전에선 강의의 설정을 적용할 수 없습니다. 아래의 것을 참고하세요. (강사님 이렇게 해도 되긋죠? 구조 제대로 이해 못한채 chatgpt에게 물으면서 했네요 ㅎㅎ; 강의 유지보수 하시기 힘드시겠어요. ) django_components 0.128 설정 1. 폴더명 및 트리구조 변경. myproj/ ├── core/ │ ├── init .py │ ├── apps.py │ ├── src_django_components/ * 폴더명 변경. 하이픈 인식 못함. │ │ ├── init .py │ │ ├── modal_ form.py * 상위로 이동 │ │ ├── modal_form/ │ │ │ ├── modal_form.html │ │ │ ├── modal_form.css │ │ │ ├── modal_form.js ├── mysite/ │ ├── settings.py │ ├── urls.py ├── manage.py 2. settings.py INSTALLED_APPS = [ ..., 'django_components', ] MIDDLEWARE = [ ..., "django_components.middleware.ComponentDependencyMiddleware", ] STATICFILES_FINDERS = [ "django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder", "django_components.finders.ComponentsFileSystemFinder", ] TEMPLATES = [ ..., "DIRS": [BASE_DIR / "core" / "src_django_components"], ], "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ], "builtins": [ "django_components.templatetags.component_tags", # 추가된 부분 ], ..., STATICFILES_DIRS = [BASE_DIR / "core" /"src_django_components"] COMPONENTS = ComponentsSettings( dirs=[ Path(BASE_DIR) / "core" / "src_django_components", ] ) 3. core/ apps.py -modal_form 등록 from django.apps import AppConfig from django_components import component class CoreConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "core" def ready(self): from .src_django_components.modal_form import ModalForm component.registry.register("modal_form", ModalForm) # 설명: ModalForm 클래스를 modal_form 이름으로 등록합니다.

  • react
  • python
  • django
  • web-api
  • htmx
bigseoul 댓글 3 좋아요 0 조회수 265

vagrant up시 인코딩에러

미해결

대세는 쿠버네티스 (초급~중급편)

안녕하세요 수업보면서 따라하다가 vagart up 명령어 수행시에 해당 에러가 났는데 윈도우 계정을 영어로도 바꿔보고 폴더경로에 한글이 포함되지 않게 했는데도 해당 오류가 발생하여 문의 남깁니다.

  • docker
  • kubernetes
dlxotjd1004 댓글 2 좋아요 1 조회수 186

spring boot를 docker compose 활용하여 --build시 문제

미해결

비전공자도 이해할 수 있는 Docker 입문/실전

안녕하세요! docker 수업을 듣다가 해결되지 않는 부분이 있어 질문 남깁니다! docker compose up에서 --build 옵션을 추가하면 새로 springboot 가 빌드되고 그 이미지를 기반으로 새로 compose 한다고 이해를 하였고 compose.yml과 Dockerfile은 아래 사진과 같이 작성을 하였습니다! 작동은 잘 되지만 내용을 수정하고 다시 docker compose up -d --build를 입력해도 전에 있던 내용이 나와 질문 드립니다! 캐시 문제일 수도 있다고 해 docker compose build --no-cache && docker compose up -d 위와 같은 명령어로도 해봤는데 그대로였습니다! pc는 m2 pro입니다!

  • docker
  • docker-compose
  • container
이유성 댓글 2 좋아요 0 조회수 210

학습 질문입니다.

미해결

[개정판] 딥러닝 컴퓨터 비전 완벽 가이드

현재 제가 이해한 내용이 맞는지 궁금하여 질문 남깁니다! mmdetection은 하나의 특정 모델 이름이 아닌 faste-rcnn이나 yolo같은 모델을 사용할때 그들의 아키텍처나 모듈을 효과적으로 관리하는 라이브러리라고 이해하면 되는 것 일까요??

  • python
  • 머신러닝
  • 딥러닝
  • keras
  • tensorflow
  • 컴퓨터-비전
배진영 댓글 2 좋아요 0 조회수 131

sklearn v1.5.1

미해결

[리뉴얼] 처음하는 파이썬 머신러닝 부트캠프 (쉽게! 실제 캐글 문제 풀며 정리하기) [데이터분석/과학 Part2]

from sklearn.metrics import root_mean_squared_error from sklearn.metrics import root_mean_squared_log_error y_pred = [11, 22, 33, 44] y_true = [10, 20, 30, 40] print("RMSE: ", root_mean_squared_error(y_true, y_pred)) print("RMSLE: ", root_mean_squared_log_error(y_true, y_pred))

  • python
  • 머신러닝
  • pandas
  • kaggle
while_ true_effort 댓글 1 좋아요 0 조회수 185

웹 크롤링 대상중 웹에디터(smart_editor2) 안의 텍스트를 크롤링하는 방법

미해결

[신규 개정판] 이것이 진짜 크롤링이다 - 실전편 (인공지능 수익화)

수업을 적용하며 크롤링 연습을 하고 있는데, 웹 크롤링 대상중 웹에디(smart_editor2) 안의 텍스트를 크롤링하는 방법이 궁금합니다. 셀레니움을 활용하여 적용하고 있는데 웹에디터는 접근이 잘 안되고 접근이 된것 같은데 텍스트가 출력되지 않습니다 어떠헥 해야 할지 모르겠어서 질의 드려요 외부 접근되지 않는 사이트이고 아이디 비번은 마스킹 처리한 코드는 아래와 같습니다. 결국 아래 부분이 문제인것 같은데 에디터 내 텍스트 추출 방법을 몰라 문의드려요 try: driver.switch_to.frame("iframe4dummy") # 🔹 iframe 내부로 이동 # 🔹 iframe 내부에서 특정 클래스("se2_inputarea")를 가진 body 태그 찾기 # 🔹 iframe 내부의 `body` 태그에서 텍스트 가져오기 body = driver.find_element(By.CSS_SELECTOR, "body") answer = body.text.strip() print("✅ HTML 에디터 내용:", answer) # 🔹 다시 원래 페이지로 복귀 driver.switch_to.default_content() except Exception as e: print("❌ iframe 전환 실패 또는 body 태그를 찾을 수 없습니다:", str(e)) from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from urllib.parse import urlencode # URL 파라미터 추가용 import time import random import openpyxl import requests from bs4 import BeautifulSoup from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC newscralling =[] import pyautogui import pyperclip #크롬 드라이버 자동 업데이트 from webdriver_manager.chrome import ChromeDriverManager # #브라우저 꺼짐 방지 chrome_options = Options() chrome_options.add_experimental_option("detach", True) service = Service(executable_path=ChromeDriverManager().install()) driver = webdriver.Chrome(service = service) # 웹페이지 해당 주소 주소이동 driver.implicitly_wait(2) #웹페이지가 로딩 될때까지 5초 대기 driver.maximize_window() driver.get("https://OOO") #아이디 입력창 id = driver.find_element(By.CSS_SELECTOR, ".submitLogin.text:nth-of-type(1)") id.click() pyperclip.copy("id") pyautogui.hotkey("ctrl", "v") time.sleep(0.3) # id.send_keys(Keys.TAB) # #비밀번호 입력창 직접입력 # time.sleep(7) pw = driver.find_element(By.CSS_SELECTOR, ".login ul li:nth-of-type(2) input") pw.click() # pw.send_keys("비밀번호") pyperclip.copy("pass") pyautogui.hotkey("ctrl", "v") #로그인 버튼 login_btn = driver.find_element(By.CSS_SELECTOR, ".btnLogin") login_btn.click() time.sleep(1) params = { "counselProcStatus": 2, "page": 1, "pageSize": 2 } #SSL인증 비활성화에 대한 경고메시지 삭제 import urllib3 urllib3.disable_warnings() qna_list_url = "https://OOO"+ urlencode(params) driver.get(qna_list_url) html = driver.page_source soup = BeautifulSoup(html, 'html.parser') articles = soup.select(".boardListStyle table tbody tr") import openpyxl from datetime import datetime wb = openpyxl.Workbook() ws = wb.active ws.title = "온라인상담_접수중" ws.append(["date", "category", "title", "quest", "answer", "man", "status"]) crowling = [] for article in articles: title = article.select_one(".alignLeft a").text date = article.select_one(".boardListStyle table tbody td:nth-of-type(4)").text category = article.select_one(".boardListStyle table tbody td:nth-of-type(2)").text status = article.select_one(".boardListStyle table tbody td:nth-of-type(7)").text link = 'https://OOO/'+ article.select_one(".alignLeft a").attrs['href'] title_link = f'=HyPERLINK("{link}", "{title}")' #상세 페이지 요청 driver.get(link) time.sleep(2) # 페이지 로딩 대기 detail_html = driver.page_source detail_soup = BeautifulSoup(detail_html, 'html.parser') quest = detail_soup.select_one(".con_txt").text try: driver.switch_to.frame("iframe4dummy") # 🔹 iframe 내부로 이동 # 🔹 iframe 내부에서 특정 클래스("se2_inputarea")를 가진 body 태그 찾기 # 🔹 iframe 내부의 `body` 태그에서 텍스트 가져오기 body = driver.find_element(By.CSS_SELECTOR, "body") answer = body.text.strip() print("✅ HTML 에디터 내용:", answer) # 🔹 다시 원래 페이지로 복귀 driver.switch_to.default_content() except Exception as e: print("❌ iframe 전환 실패 또는 body 태그를 찾을 수 없습니다:", str(e)) #answer = detail_soup.select_one(".se2_input_area.husky_seditor_editing_area_container iframe").text man = detail_soup.find('th', string="작성자").find_next_sibling().text crowling = ws.append([date, category, title, quest, answer, man, status]) driver.back() # 브라우저에서 '뒤로 가기' 실행 print(date, category, title, quest, answer, man, status) now = datetime.now().strftime("%Y%m%d_%H%M%S") filename = f"온라인상담_{now}.xlsx" wb.save(filename)

  • python
  • 웹-크롤링
  • 웹에디터
민소리 댓글 1 좋아요 0 조회수 160

dag_run 주기적으로 삭제

미해결

Airflow 마스터 클래스

안녕하세요 강사님! 실습중에 궁금한게 생겨서 질문드립니다! dag이 실행될때 저장되는 dag_run 데이터는 주기적으로 삭제해도 airflow 스케줄 실행에 문제가 발생하진 않나요?? postgres도 EC2 내부에 docker-compose로 띄워놔서 혹시나 주기적으로 지워주면 리소스를 줄일 수 있을까 해서요!

  • python
  • 데이터-엔지니어링
  • airflow
이한희 댓글 2 좋아요 1 조회수 141

docker 권한 오류입니다

미해결

실전도커: 도커로 나만의 딥러닝 클라우드 컴퓨터 만들기

powershell에서는 usermod -aG 명령어로 정상적으로 권한부여 됐는데(docker run hello-world) vscode 터미널에서는 권한부여가 자꾸 오류납니다 같은 환경이라고 생각해서 powershell에서 계속 작업을 했었는데, dev container reopen할때 권한 오류가 나더라구요. 원인이 무엇일까요? 재부팅 및 terminal kill해도 해결이 안되네요

  • python
  • 딥러닝
  • linux
  • docker
  • azure
  • 가상화
  • mlops
김태연 댓글 1 좋아요 0 조회수 172

cache 질문

미해결

Next + React Query로 SNS 서비스 만들기

이전 faker 를 사용했을 때 이미지가 바뀌는 문제때문에 getPostRecommend 함수 부분에 cache : "force-cache" 를 작성하셨었는데 실제 데이터를 받아오는 현시점에선 cache:"no-store" 를 작성하는게 맞을까요 ?

  • react
  • next.js
  • react-query
  • next-auth
  • msw
심현석 댓글 2 좋아요 0 조회수 137

강의 내용이 일부 잘린 것으로 보입니다!

미해결

Airflow 마스터 클래스

안녕하세요! 항상 강의 잘 듣고 있습니다 다른 강의와 달리 실습 코드에 대한 설명 없이 바로 airflow 실행으로 화면이 넘어가는 것으로 보입니다! 혹 강의 영상의 일부가 잘린 것인가 하여 문의를 드립니다 (해당 영상 4분 30초 기준)

  • python
  • 데이터-엔지니어링
  • airflow
Dasol Lee 댓글 2 좋아요 0 조회수 108

ssh의 연결과 rdp의 연결은 별개인건가요?

미해결

실전도커: 도커로 나만의 딥러닝 클라우드 컴퓨터 만들기

vscode를 연동하기 위해서 gui방식의 연결이 필수인걸까요? 아니면 ssh만으로도 vscode 연동이 가능한걸까요?

  • python
  • 딥러닝
  • linux
  • docker
  • azure
  • 가상화
  • mlops
김태연 댓글 2 좋아요 0 조회수 232

질문 아님.

미해결

파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트 (장고 4.2 기준)

리눅스로 하느라 힘들다.. 공식 문서 언제 다 읽고 어떻게 선별적으로 잘 읽는지 GPT 없던 시절 .. .대단하다.

  • react
  • python
  • django
  • web-api
  • htmx
주인국 댓글 1 좋아요 0 조회수 142

인기 태그

인프런 TOP Writers

주간 인기글