Python

    Python파이썬 pandas series 예제풀이

    distance_from_sun = [149.6, 1433.5, 227.9, 108.2, 778.6] planets = ['Earth','Saturn', 'Mars','Venus', 'Jupiter'] dist_planets=pd.Series(data=distance_from_sun,index=planets) # 변수지정, pandaseries 만들기 time_light=dist_planets/18 # 위 사진 요구사항 time_light 계산 후 저장 close_planets = time_light[time_light

    Python파이썬 pandas 인덱스

    Pandas 의 장점 Allows the use of labels for rows and columns 기본적인 통계데이터 제공 NaN values 를 알아서 처리함. 숫자 문자열을 알아서 로드함. 데이터셋들을 merge 할 수 있음. It integrates with NumPy and Matplotlib pandas 라이브러리를 import pandas as pd를 통해 불러와서 사용하면된다.

    Python파이썬 numpy의 boolean연산과 배열 연산

    위 사진의 In(238)의요구사항처럼 50보다 크고 80보다 작은 데이터를 가져오는 방법은 X[ (X>50) & (X

    Python파이썬 numpy 중복 제거 값만 리스트로 가져오기 unipue()

    page_view라는 변수를 만들고 page_view를 배열로 만들어준 후 page_view의 중복된 데이터를 제거해주는 방법은 np.unipuer(page_view)라고 실행해주면 된다.