# How to transfer pandas dataframe to Huggingface

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-transfer-pandas-dataframe-to-huggingface%2F46095%3E%5C
**Category:** Beginners\
**Created:** [July 8, 2023, 1:38pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-transfer-pandas-dataframe-to-huggingface%2F46095 "2023-07-08T13:38:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samirit](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/samirit/32/17441_2.png) [@Samirit](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSamirit)%5C
**Post date:** [July 8, 2023, 1:38pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-transfer-pandas-dataframe-to-huggingface%2F46095%2F1 "2023-07-08T13:38:32Z")

</div>

I have made a pandas dataframe called ‘result’ in google colab using the following code:  
import pandas as pd  
frames = [selected\_data\_df1, selected\_data\_df]  
result = pd.concat(frames)  
result Now, I want to transfer this ‘result’ dataframe to huggingface, so that I can call it from there will using argilla to create records out of it. Please let me know the Python code for the same.

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmariosasko)%5C
**Post date:** [July 11, 2023, 1:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-transfer-pandas-dataframe-to-huggingface%2F46095%2F2 "2023-07-11T13:26:36Z")

</div>

You can use `datasets.Dataset.from_pandas(df)` to convert a Pandas DataFrame into a HF Dataset.
