[英]How to convert a pandas dataframe to a an arrow dataset?
在 Huggingface 庫中,有一種特定格式的數據集稱為箭頭數據集
https://arrow.apache.org/docs/python/dataset.html
https://huggingface.co/datasets/wiki_lingua
我必須將普通的 Pandas 數據幀轉換為數據集或讀取 tabluar csv 文件作為數據集。
那可能嗎?
您可以使用from_pandas(…)
方法,如文檔中所示。 https://arrow.apache.org/docs/python/pandas.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.