filterberkeleyfaculty.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:ucb-faculty-salary 作者: dailycal-projects 项目源码 文件源码
def build_titles(self):
        """
        Takes a CSV of titles that determines whether they correspond
        to a faculty position that we're interested in analyzing.
        """
        titles = {}
        titles_file_path = os.path.join(
            settings.DATA_DIR, 'directory', 'titles.csv')
        with open(titles_file_path, 'r') as titles_file:
            reader = csv.DictReader(titles_file)
            for row in reader:
                if row['keep'] == '1':
                    titles[row['db_title']] = row
        return titles
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号