最終更新:2019-08-13 (火) 18:54:20 (4d)  

pandas.read_csv はてなブックマークを見る
Top / pandas.read_csv

https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html

定義

pandas.read_csv(filepath_or_buffer: Union[str, pathlib.Path, IO[~AnyStr?]], sep=',', delimiter=None, header='infer', names=None, index_col=None, usecols=None, squeeze=False, prefix=None, mangle_dupe_cols=True, dtype=None, engine=None, converters=None, true_values=None, false_values=None, skipinitialspace=False, skiprows=None, skipfooter=0, nrows=None, na_values=None, keep_default_na=True, na_filter=True, verbose=False, skip_blank_lines=True, parse_dates=False, infer_datetime_format=False, keep_date_col=False, date_parser=None, dayfirst=False, cache_dates=True, iterator=False, chunksize=None, compression='infer', thousands=None, decimal=b'.', lineterminator=None, quotechar='"', quoting=0, doublequote=True, escapechar=None, comment=None, encoding=None, dialect=None, error_bad_lines=True, warn_bad_lines=True, delim_whitespace=False, low_memory=True, memory_map=False, float_precision=None)

  • import pandas as pd
    df = pd.read_csv("population.csv", encoding="SHIFT_JIS")
    df.sort_values(by=["平成28年"], ascending=True)

メモ

  • index_col='time'
  • index_col=0

関連

Returns: