Open Eli-m93 opened 2 years ago
having similar problems, where is the CSV located?
having similar problems, where is the CSV located?
Hi Togeka, you can copy and paste this code into google collab to read RData into your jupyter notebook:
!pip install pyreadr
import pyreadr
import numpy as np
import pandas as pd
temp = pyreadr.read_r('/content/wage2015_subsample_inference.Rdata')
df = temp['data']
On google collab you need to literally click the folder icon on the right hand side, and manually upload the RData file onto the collab website to use it.
Or you could transfer the rdata to csv file manually in your computer. This is the command you need to use in your local R Studio.
data = load("~/Downloads/wage2015_subsample_inference.rdata")
write.csv(data, file="~/Downloads/data.csv")
I doubt that these python notebooks haven't been checked.
The current code links to github's wage data which is only an RData dataset, then the code reads:
I found two solutions: