Converting Pandas DataFrame to Orange Table

后端 未结 7 1711
感动是毒
感动是毒 2020-12-08 17:18

I notice that this is an issue on GitHub already. Does anyone have any code that converts a Pandas DataFrame to an Orange Table?

Explicitly, I have the following tab

7条回答
  •  孤街浪徒
    2020-12-08 17:47

    Answer below from a closed issue on github

    from Orange.data.pandas_compat import table_from_frame
    out_data = table_from_frame(df)
    

    Where df is your dataFrame. So far I've only noticed a need to manually define a domain to handle dates if the data source wasn't 100% clean and to the required ISO standard.

    I realize this is an old question and a lot changed from when it was first asked - but this question comes up top on google search results on the topic.

提交回复
热议问题