Series.from_csv()
pandas.Series.from_csv
-
classmethod Series.from_csv(path, sep=', ', parse_dates=True, header=None, index_col=0, encoding=None, infer_datetime_format=False)
-
Read CSV file (DISCOURAGED, please use
pandas.read_csv()
instead).It is preferable to use the more powerful
pandas.read_csv()
for most general purposes, butfrom_csv
makes for an easy roundtrip to and from a file (the exact counterpart ofto_csv
), especially with a time Series.This method only differs from
pandas.read_csv()
in some defaults: