civis.io.dataframe_to_file¶
-
civis.io.
dataframe_to_file
(df, name='data.csv', expires_at='DEFAULT', client=None, **to_csv_kws)[source]¶ Store a
DataFrame
as a CSV in Civis PlatformParameters: - 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 theCIVIS_API_KEY
.- **to_csv_kws
Additional keyword parameters will be passed directly to
to_csv()
.
Returns: - file_id : int
The integer ID of the new Civis File object
See also
file_to_civis()
to_csv()
- df :