전체 글 692

파이참 모듈 설치후에도 ModuleNotFoundError: No module named 에러발생시 해결법

특정 모듈 설치 후에도 ModuleNotFoundError: No module named 에러가 발생하는 경우가 있다. 이런 경우 모듈이 설치된 파이선인터프리터와, 현재 실행되고있는 파이썬 인터프리터가 다른 경우가 원인일 때가 있다. 즉 모듈이 설치된 파이선 인터프리터를 현재 파일의 인터프리터로 설정하면 문제가 해결된다. 따라서 1. 모듈이 설치된 파이썬 인터프리터 2. 현재실행되고있는 파이썬 인터프리터 위 1,2를 일치시키면 문제가 해결된다.

[태블로] 파일 업로드 및 sheet에서 행,열 구성하기

1. 새 비주얼리제이션 만들기 2. 데이터 첨부하기 위 화면에 데이터 드래그 엔 드랍 원본데이터를 확인할 수 있음 3. 시각화하기 왼쪽아래 sheet를 누르고, 원하는 행, 열 구성을 왼쪽 테이블에서 드래그엔 드랍 행을 id, 열을 성별로 했을때 테이블 행을 성별, 열을 생존자 수로 했을 때 그래프 오른쪽 표현방식에서 다른 차트로 변활할 수 있다.

이벤트 발생에 따른 처리

HTML코드 this is h1 1 this is h1 2 this is h1 3 click to change color click to change class mouse over this is h2 this is h3 this is h2(out of div) JS코드 // -------------------------------[이벤트동작]------------------------------- // 1. 클릭으로 색깔 바꾸기 function handleTitleClickColor() { // element가 블루면 토마토, 토마토면 블루로 const nowColor = changeColorElement.style.color; let newColor; if (nowColor==="blue") { ne..

HTML에서 작성한 내용을 JS에서 수정하기

HTML코드 this is h1 1 this is h1 2 this is h1 3 click to change color click to change class mouse over this is h2 this is h3 this is h2(out of div) JS코드 // -------------------------------[불러오기]------------------------------- // 1. id로 불러오기 const callById = document.getElementById("line1"); console.log(callById); console.log("className : ",callById.className); console.log("innerText : ",callById.in..

샤프비율 정의 및 구현

샤프비율 정의 (기대되는 투자 수익률 - 벤치마크 수익률) / (기대되는 투자 수익률 - 벤치마크 수익률)의 표준편차 코드 구현 stock_returns #수익률 benchmark_returns #벤치마크 수익률 excess_returns = stock_returns.sub(benchmark_returns, axis=0) avg_excess_returns = excess_returns.mean() std_excess_returns = excess_returns.std() daily_sharpe_ratio = avg_excess_returns.div(std_excess_returns)

금융/주식 2022.05.29