728x90
반응형

살콤아내 자기계발 234

점프투파이썬 3주차 실습_서로 유사한 모양(인구분포)의 그래프를 가진 동을 찾아라

문제1 : 신중동의 인구그래프와 가상 유사한 모양(인구분포)의 그래프를 가진 동을 찾아라 절차 1) 실제로는 정규화 작업을 통해 비교한다. 이번 문제에서는 다음과 같이 비율로 풀어본다. A동의 0세~100세 인구/A동의 총인구를 B동의 0세~100세 인구/B동의 총인구를 뺀 값의 절대값의 합을 구한다. |A동의 0세인구/A동의 총인구-B동의 0세인구/B동의 총인구| + |A동의 1세인구/A동의 총인구-B동의 1세인구/B동의 총인구| + |A동의 2세인구/A동의 총인구-B동의 2세인구/B동의 총인구| + ...... 2) 신중동의 비율 데이터 구조를 리스트로 만든다 3) 신중동을 제외한 나머지동과 신중동의 인구분포 절대값 비교하는 리스트를 만든다. (1)에서 했던 데이터 리스트. 4) 해당 동의 자료를 i..

Shell says it is past peak oil production (15th February, 2021)

Shell says it is past peak oil production (15th February, 2021) The energy giant Royal Dutch Shell has announced it has passed its peak production of oil. The days of increasing oil production are over and the decline in output has started. Shell said in a press release that, "oil production peaked in 2019". The "high point" of Shell's oil production reached around 1.7 million barrels per day. I..

점프투파이썬 3주차 실습_시간별 승하차인원

1. 각각의 시간대에 가장 승차인원이 가장 많은 역, 하차인원이 가장 많은 역을 구하시오 Ex) [ [4시, 역이름, 승차인원, 역이름, 하차인원] [5시, 역이름, 승차인원, 역이름, 하차인원] ...................................... ] 절차 1) 서로다른 엘리먼트(요소)의 동일 인덱스를 비교해야 함 for idx, row in enumerate temp[2:] : for idx2, row2 in enumerate row[4:52] : 2) 그러기 위해서는 총 48개의 데이터가 필요함 pol=[0, 0, 0, 0, 0, 0, 0, ....] mx=[0]*48 을 만들면 mx에 48개의 0 리스트가 뜬다. 그런데 if문을 활용해서 최대값을 구해보자. for문에서 mx[idx..

Job offers $30 an hour for eating and testing candy (26th January, 2021)

Job offers $30 an hour for eating and testing candy (26th January, 2021) The sweetest way to earn some extra cash is on offer for those with a sweet tooth. A candy company in Canada is searching for people to taste and review its original creations for the sweet sum of $30 an hour. The company is called Candy Funhouse and it requires "candyologists" to test and provide feedback on its candy and ..

World's longest rabbit is 'rabbitnapped' (16th April, 2021)

World's longest rabbit is 'rabbitnapped' (16th April, 2021) One of the world's largest rabbits has been stolen from his home in England. Darius, a continental giant rabbit, is the current Guinness record holder as the longest rabbit in the world. From nose to tail, he measures 129cm in length. Police say he was abducted from his pen late Saturday evening. Local police said in a statement: "It is..

점프투파이썬 3주차 정리

모듈 함수나 변수 또는 클래스를 모아 놓은 파일로, 모듈이 모여 하나의 패키지를 만든다. 208pg 질문: import mod1를 할 때, 동일한 mod1 이름이 있다면 (각기 다른 폴더에) 어떻게 모듈이 실행될까? if__name__=="__main__""의 의미 대화형 222pg 예외처리 try...except/ try...finally문 활용 216pg 패키지 모듈을 파일트리를 이용해 계층적(디렉터리구조)으로 편리하게 관리할 수 있도록 함. 1. 폴더와 py파일을 만든다. 2. echo.py, render,py 파일은 아래와 같이 만든다. 3. Anaconda Prompt에 다음과 같이 명령어를 작성하면 다음과 같이 echo라는 결과값을 받을 수 있다. - 처음에 set PYTHONPATH는 대문자..

Kaggle_ 예측모델 및 분석 대회 플랫폼

Kaggle은 Google이 모회사인 예측모델 및 분석 대회 플랫폼입니다. Google아이디로 간단히 register하시면 됩니다. 메인 페이지는 다음과 같습니다. Competition에 참가해서 우승하면 상금이 있습니다. 각각의 대회를 눌러보면 몇팀이 참여했는지, 시간이 얼마나 남아있는지 보실 수 있습니다. - padas패키지는 데이터프레임 데이터 타입을 기반으로 (행,열로 구성된) 2차원 데이터를 전처리하여 분석하는 데 유용하다. www.kaggle.com/ Kaggle: Your Machine Learning and Data Science Community Kaggle is the world’s largest data science community with powerful tools and res..

점프투파이썬 2주차 실습_3 (t-money 3월 교통통계파일을 활용)

t-money 3월 교통통계파일을 활용하여 다음을 수행하시오. 1. 출근시간 (7-9시) 동안 가장 많이 하차되는 역을 찾아보시오. - variable explorer로 볼 수 있도록 데이터를 호출하시오. - 7-9시의 하차 인덱스값: 11, 13 - enumerate 함수와 replace 함수 활용 final_idx+2 를 하는 이유는 앞서 temp[2:] 부터 시작했기 때문이다. 정답: 가산디지털단지 520888 2. 역별로 승차와 하차 총합이 들어간 리스트를 만드세요 - for문 사용 (for문을 잘 비워줘야함) - 큰리스트 안에는 다음과 같이 리스트 3개가 들어가 있음. [ [서울역, 승차총합, 하차총합] [구로역, 승차총합, 하차총합] ... ] >> 30분동안 고민한 나의 결론 (오답) >> ..

Scientists say cure for baldness could be close (23rd March, 2021)

Scientists say cure for baldness could be close (23rd March, 2021) Help may soon be at hand for those who are losing or have lost their hair. A team of Japanese scientists has discovered stem cells that are vital in the hair regeneration process. This is promising news for the millions of people worldwide who suffer from baldness. A cure has eluded scientists for decades, despite extensive resea..

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..

728x90
반응형