what would be the in your experience the best way to convert R data.table frame into a Pandas dataframe? I looked into different options, like hdf5 (3 libraries), rpy (does not seem to have this functionality?), and decided to ask the esteemed community: do you have any code snippets to do it the fastest, easiest, and the most reliable way?
R and python code snippets would be preferable.
It seems that for now the simplest and most reliable way to do so is via csv
R:
write.csv(df, file)
Python:
df = pd.read_csv(file, na_values=['NA'])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With