Best way to convert R data.table to pandas.DataFrame? [closed] Best way to convert R data.table to pandas.DataFrame? [closed] pandas pandas

Best way to convert R data.table to pandas.DataFrame? [closed]


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'])