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]}) >>> import tempfile >>> df.to_orc(tempfile.TemporaryFile())
- Parameters:
path (str, file-like object or None, default None) – If a string, it will be used as Root Directory path when 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 disallow large query results over the default size limit of 10 GB.
- Returns:
If buf is None, returns the result as bytes. Otherwise returns None.
- Return type:
bytes or None