This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import requests as re | |
from bs4 import BeautifulSoup | |
import os | |
import time | |
from multiprocessing import cpu_count | |
from multiprocessing.pool import ThreadPool | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
# use r2py | |
import os | |
# add R path to enviornment variables | |
os.environ["R_HOME"] = r"C:\Program Files\R\R-4.4.1" | |
import rpy2 |