catchbubbles
catchbubbles

Reputation: 56

Access .rds file from Python

I am working on a project where I have got an .rds file which consist of trained model as per my requirement generated by R code.

Now I need to load the trained model in python and use it in processing the records.

Is there any way to do so? If not what are the alternatives.

Thanks

Upvotes: 2

Views: 4159

Answers (1)

MFR
MFR

Reputation: 2077

We can use feather:

import feather
path = 'my_data.feather'
feather.write_dataframe(df, path)
df = feather.read_dataframe(path)

Upvotes: 2

Related Questions