>>> # Write a dataframe to a remote CSV file
>>> df.to_csv("hf://datasets/my-username/my-dataset-repo/test.csv")
```  
The same workflow can also be used for [Dask](https://docs.dask.org/en/stable/how-to/connect-to-remote-data.html) and [Polars](https://pola-rs.github.io/polars/py-polars/html/reference/io.html) DataFrames.  
* Querying (remote) Hub files with [DuckDB](https://duckdb.org/docs/guides/python/filesystems):  
```python
>>> from huggingface_hub import HfFileSystem
>>> import duckdb