Python for Finance: Analyze Big Financial Data

(Elle) #1
object String File path, URL, or other source

sep

String, default “,”

Delimiter to use

lineterminator

String (one character)

String for line breaks

quotechar

String

Character for quotes

quoting

Integer

Controls recognition of quotes

escapechar

String

String for escaping

dtpye

dtype/dict

dict of dtype(s) for column(s)

compression

“gzip”/“bz2”

For decompression of data

dialect

String/ csv.Dialect

CSV dialect, default Excel

header

Integer

Number of header rows

skiprows

Integer

Number of rows to skip

index_col

Integer

Number of index columns (sequence for multi-index)

names

Array-like

Column names if no header rows

prefix

String

String to add to column numbers if no header names

na_values

List/ dict

Additional strings to recognize as NA, NaN

true_values

List

Values to consider as True

false_values

List

Values to consider as False

keep_default_na

Boolean, default True

If True, NaN is added to na_values
Free download pdf