How to transfer pandas dataframe to Huggingface
I have made a pandas dataframe called ‘result’ in google colab using the following code:import pandas as pdframes = [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.
2023-07-11T13:26:36Z
You can usedatasets.Dataset.from_pandas(df)to convert a Pandas DataFrame into a HF Dataset.