, compression='infer', client=None, **read_kwargs)[source]

Load a DataFrame from a CSV stored in a Civis File

The DataFrame will be read directly from Civis without copying the CSV to a local file on disk.

file_id : int

ID of a Civis File which contains a CSV

compression : str, optional

If “infer”, set the compression argument of pandas.read_csv based on the file extension of the name of the Civis File. Otherwise pass this argument to pandas.read_csv.

client : civis.APIClient, optional

If not provided, an civis.APIClient object will be created from the CIVIS_API_KEY.


Additional arguments will be passed directly to read_csv().

DataFrame containing the contents of the CSV

If pandas is not available

See also