강의

멘토링

커뮤니티

Inflearn Community Q&A

excellentjylee0776's profile image
excellentjylee0776

asked

Python School - Work Automation Using Python Programming

Handling missing values

누락 값 처리에서 'from pandas~', 'skipinitialspace', 'inplace'에 관하여

Written on

·

339

0

안녕하세요,

강의 꾸준히 듣고 있고요... 처음에는 설치도 당황스러웠는데 천천히 이해하고 있습니다.

누락 값 처리 강의에서 설명을 듣지 못한 것이 있어서요.

  1. from pandas import read_csv

    이전 강의에서는 'import pandas as pd'를 사용하다가,

    이번에는 'from pandas import read_csv'라고 쓰셨더라고요.

    그 이유가 있나요?? 차이가 있는지요?

    전자 이후에는 pd.read_csv(), 후자 이후에는 read_csv()라고 쓴 것은 봤어요..

  2. skipinitialspace

    'skipinitialspace'의 용도는 무엇인가요?

    Age가 소수점 첫자리가 나타나는 것을 확인했습니다.

  3. inplace=1

    'df.dropna(inplace=1)'을 입력하니 ValueError라고 합니다.

    마지막 줄 메시지가

    "ValueError: For argument "inplace" expected type bool, received type int."네요...

    'inplace=1'을 없애면 결과값이 정상적으로 나타납니다.

python

Answer

This question is waiting for answers
Be the first to answer!
excellentjylee0776's profile image
excellentjylee0776

asked

Ask a question