, name='data.csv', expires_at='DEFAULT', client=None, **to_csv_kws)[source]

Store a DataFrame as a CSV in Civis Platform

df : DataFrame

The table to upload.

name : str, optional

The name of the Civis File

expires_at : str, optional

The date and time the file will expire. If not specified, the file will expire in 30 days. To keep a file indefinitely, specify null. If provided, this must be either None or a valid RFC3339 date/Time string.

client : civis.APIClient, optional

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


Additional keyword parameters will be passed directly to to_csv().

file_id : int

The integer ID of the new Civis File object

See also