bigframes.pandas.DataFrame.to_orc#
- DataFrame.to_orc(path=None,*,allow_large_results=None,**kwargs)→bytes|None[source]#
Write a DataFrame to the ORC format.
Examples:
>>>df=bpd.DataFrame({'col1':[1,2],'col2':[3,4]})>>>importtempfile>>>df.to_orc(tempfile.TemporaryFile())
- Parameters:
path (str,file-like object orNone,default None) – If a string, it will be used as Root Directory pathwhen writing a partitioned dataset. By file-like object,we refer to objects with a write() method, such as a file handle(e.g. via builtin open function). If path is None,a bytes object is returned.
allow_large_results (bool,default None) – If not None, overrides the global setting to allow or disallowlarge query results over the default size limit of 10 GB.
- Returns:
If buf is None, returns the result as bytes. Otherwise returnsNone.
- Return type:
bytes or None
On this page