반응형

2023/10/26 6

한 점이 다각형 내부, 외부에 있는지 판별

https://losskatsu.github.io/machine-learning/py-polygon01/#%EC%B0%B8%EA%B3%A0%EB%A7%81%ED%81%AC [python] 한 점이 다각형 내부에 위치하는지 판별하기 [머신러닝] 한 점이 다각형 내부에 위치하는지 판별하기 losskatsu.github.io https://bowbowbow.tistory.com/24 [기하] 다각형의 내부 외부 판별 [기하]다각형의 내부 외부 판별 목차 [기하] 다각형의 내부 외부 판별 다각형의 내부 외부 판별이란? 아이디어 다각형의 내부에 위치하는 점의 특징은 뭘까? 구현 어떻게 반 직선과 다각형의 교 bowbowbow.tistory.com 위 두 링크들을 참고해 정리한다.

AttributeError: 'DataFrame' object has no attribute 'append'

pandas 2.0.0 이후부터는 append를 지원하지 않는다고 한다. 기존 코드가 append 함수를 사용하는 것을 전재로 짜여져 있어서 바꿔야 한다. 판다스 버전을 낮추는 것도 방법이지만 호환성 문제가 터질 수 있기 때문에 코드를 수정하는 것이 장기적으로는 옳은 방법으로 보인다. append 함수는 concat 함수로 대체되었다. import pandas as pd df1 = pd.DataFrame({'A': ['A0', 'A1', 'A2'], 'B': ['B0', 'B1', 'B2'], 'C': ['C0', 'C1', 'C2']}, index=[0, 1, 2]) df2 = pd.DataFrame({'A': ['A3', 'A4', 'A5'], 'B': ['B3', 'B4', 'B5'], 'C': [..

ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html

차량 경로 추적 프로젝트 중 해당 오류가 출력되었다. jupyter와 ipywidgets를 업데이트 하라면서 참고할 사이트를 출력해준다. https://ipywidgets.readthedocs.io/en/stable/user_install.html Installation — Jupyter Widgets 8.1.1 documentation Installation Users can install the current version of ipywidgets with pip or conda. In most cases, installing the Python ipywidgets package will also automatically configure classic Jupyter Notebook and Jupyt..

error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1255: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian,..

opencv 사용 중에 위와 같은 오류가 발생했다. 해결법은 opencv를 삭제 후 재설치하는 것이라고 한다. 위와 같은 코드로 삭제와 재설치를 진행하였고, 오류가 계속되자 vscode를 껐다가 다시 켜고 실행하니 정상적으로 코드가 실행된다.

반응형