728x90
반응형

살콤아내 자기계발 245

Suez Canal reopens after stranded ship is freed (31st March, 2021)

Suez Canal reopens after stranded ship is freed (31st March, 2021) The Suez Canal is finally open again after the giant vessel that had blocked it for a week is refloated. The 220,000-ton Ever Given container ship managed to get wedged between both sides of the strategic waterway last week. The subsequent blockage disrupted global trade and international markets. Analysts forecast it has cost Eg..

UK report on racism draws criticism (4th April, 2021)

UK report on racism draws criticism (4th April, 2021) A report on racism commissioned by the United Kingdom has drawn criticism from upholders of racial equality. The Commission on Race and Ethnic Disparities was established last summer in the wake of the killing of George Floyd in the USA. That death sparked protests across the world and fuelled the Black Lives Matter movement. The commission a..

점프투파이썬 2주차 실습_2 (키워드로 입력한 xx동의 0~100세 이상의 인구분포를 그래프로 그리기)

키워드로 입력한 xx동의 0~100세 이상의 인구분포를 그래프로 그리기 1. input함수를 이용해서 동의 정보를 입력받기 2. total 데이터에서 해당 동의 정보 찾기(if x in data) 3. 해당 동의 데이터를 str>int로 switching 4. plot으로 그래프그리기 예제: 예래동을 검색하면 다음 그래프가 그려진다.

점프투파이썬 4장 연습문제 179pg

연습문제1: 입력한 값의 홀수, 짝수값이 나오게 구현하시오 오류가 생긴 코딩 (값만 입력받고 return값이 없음) 수정된 코딩 (def 함수와 return을 제거하니까 제대로 된 답이 나옴) 연습문제6: 기존 파일에 새 내용을 추가하게 하시오 질문: 왜 줄바꿈이 일어나지 않을까? 해결: 아래 코드만 실행시키면 줄바꿈이 된다 (단축키: F9)

Iran and U.S. in talks to revive nuclear deal (8th April, 2021)

Iran and U.S. in talks to revive nuclear deal (8th April, 2021) Talks between Iran and the USA to revive the 2015 Iran nuclear deal are set to resume. At this early stage, the discussions will be indirect and there will be no face-to-face meetings between high-level officials. The discussions will take place in Vienna and European officials will act as intermediaries. On the table is the revival..

Levi's says baggier 'balloon' jeans are in (12th April, 2021)

Levi's says baggier 'balloon' jeans are in (12th April, 2021) ​ Fashion is ephemeral. This is particularly so for jeans. The latest trend in jeans is the baggy look. Many fashionistas are attributing this switch to looser-fitting jeans to coronavirus. Many of us have put on weight during the pandemic. As a result, we can no longer slide into our skinny jeans, which have been all the rage for the..

점프투파이썬 2주차 실습_1 (인구수가 가장 많은 동과 인구값을 찾으시오)

실습문제 1: age_population_month.csv파일을 variable explorer로 데이터를 볼 수 있게 for문을 사용하시오 실습문제 2: 청담동의 데이터를 추출하시오. >>결과값 실습문제 3: 동단위에서 가장 인구가 많은 동의 데이터를 추출하시오. 1) 숫자 안에 쉼표,가 있으면 숫자를 비교할 때 오류가 나온다. >> a.replace(',', '')를 활용해서 청담동의 인구수를 int값으로 출력한다. >>결과값: 26738 실습문제 4: 가장 인구수가 많은 동과 그 인구수를 찾으시오 (String을 활용하기) max_temp=0 for idx, row in enumerate(temp[1:]): if '동' or '읍' or '면' in temp1[0][-13]: >>경기도 (41000..

점프투파이썬 2주차 정리

점프투파이썬 143pg for i n range(2,10): for j in range(1,10): print(i*j, end=" ") #띄어쓰기 print (' ') #줄바꿈기능 파이썬 C언어 print('1') prnit('2') >> 1 2 print('1') print('2') >> 12 파이썬 파라미터설정에 관한 개념정리 #end라 이름불리는 설정에는 어떤 초기 parameter(설정)이 있다. end=" "의 초기에 '|n' 의 성질을 갖는다. 프린트물의 가장 마지막에 붙이는 문자열이다. end='end'의 결과 0end1end2end3end4end5end6end7end8end9end end=' '의 결과 0 1 2 3 4 5 6 7 8 9 end='end\n'의 결과 0end 1end 2en..

POSTECH 데이터사이언스를 위한 통계학입문 2(1-4주차 요약)

신뢰구간 허용오차에 영향을 주는 요소: 표본크기, 표준편차, 유의수준 통계적검정 (t-test) - 가설의 진위여부를 판단, 증명, 검정하는 통계적 추론 방식 (귀무가설, 대립가설) - 가설설정>유의수준설정(a=0.05)>검정통계량 산출>가설 기각/채택 - 단측검정, 양측검정 - 데이터 표본이 30이하일 때 t분포를 사용한다 - 유의수준1.96 이면 귀무가설을 기각한다. p-value>훈련데이터 training set (예측모형을 만들기 위해 사용)/ 검증데이터 test set(만들어진 모형의 성능을 평가하기 위해 사용) - 교차타당성 k-fold cross-validation (k=3, 5, 10): 3-fold cross-validation에서는 주어진 데이터 150중 2/3은 훈련데이터로 쓰고, 1..

점프투파이썬 1주차 실습

return은 최종결과값을 뱉어줌 (메모리상에서 함수는 다른 메모리에 따로 저장되어있다. 메인함수를 계산하는 중 함수를 만나면 함수가 속한 메모리로 점프하여 따로 함수를 계산한 뒤, 함수의 결과값을 다시 메인함수쪽으로 던져주는 것이다. 이것이 값을 반환한다는 뜻이다. 값을 반환(return) def add(a,b) c=a+b return c 값을 추출 반환과는 다른 개념. 한 리스트에서 맨 뒤의 값을 던져주고 그 값을 지워주는것. *반환이라는 개념이 추출에 포함되는 경우도 있다. var.a.pop( ) 가 대표적인 경우이다. 실습문제 1. 1904년부터 2021년까지 일별 최고기온 구하기 import csv f=open('파일주소') #파일주소를 복사할 때 나오는 역슬러시를 슬러시로 바꿔야함. 아직 파일..

728x90
반응형