【问题标题】:Finding several words from text and what is found instert into a table从文本中查找几个单词并将找到的内容插入到表格中
【发布时间】:2022-01-18 12:10:23
【问题描述】:

我有一个表,其中包含一个名为“职位描述”的列,其中包含大量文本。 我想找到特定的单词以及找到的内容插入到带有他的 ID 的表中。 例如,这是我的主表:

ID Job Description
0 Are you eager to roll up your sleeves and harness data to drive policy change? Do you enjoy sifting through complex datasets to illuminate trends and insights? Do you see yourself working for a values-driven organization with a vision to tackle the most pressing injustices of our day? We are looking to hire a bright, hard-working, and creative individual with strong data management skills and a demonstrated commitment to immigrant's rights.Power BI The Data Analyst will assist with analysis and reporting needs for Veras Center on Immigration and Justice (CIJ), working across its current projects and future Vera initiatives. Who we are: Founded in 1961, The Vera Institute is an independent,Power BI non-partisan, nonprofit organization that combines expertise in research, technical assistance, and demonstration projects to assist leaders in government and civil society examine justice policy and practice, and improve the systems people rely on for justice and safety. We study problems that impede human dignity and justice. We pilot solutions that are at once transformative and achievable.Qlik Sense We engage diverse communities in informed debate. And we harness the power of evidence to drive effective policy
1 Overview Provides analytical and technical support for the integration of multiple data sources used to prepare internal and external reporting for the Quality Management team and business stakeholders. Provides support and analytical insight for Quality Incentive measures, HEDIS measures, and Quality Improvement initiatives.Data Studio Monitors, analyzes, and communicates Quality performance related to benchmarks. Collaborates with clinical and operational teams within Quality Management, as well as with CHOICE Clinical Operations and Business Intelligence & Analytics (BIA).

我想搜索并发现它在“职位描述”列中有“Power BI”、“Qlik Sense”、“Data Studio”之类的词。如果这些词在文本中,则将其和他的 ID 插入到包含“ID”和“DataVisualization”列的表中。看起来像:

ID DataVisualization
0 Power BI
0 Qlik Sense
1 Data Studio
1 Power BI

我不知道是否可以通过查询或其他方式进行。请告诉我该怎么做!

【问题讨论】:

    标签: python sql text datatable insert


    【解决方案1】:

    也许你正在寻找这样的东西:

    input_table = []
    output_table = []
    word_list = ["Power BI", "Qlik Sense", "Data Studio"]
    id_list = [0, 1]  # Treating as a list to allow an id to be missing
    
    input_table.append("Are you eager to roll...effective policy")
    input_table.append("Overview Provides...& Analytics (BIA).")
    
    for id in id_list:
        for word in word_list:
            if word in input_table[id]:
                output_table.append([id, word])
    print(output_table)
    

    输出是

    [[0, 'Power BI'], [0, 'Qlik Sense'], [1, 'Data Studio']]
    

    【讨论】:

      猜你喜欢
      • 2021-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-13
      • 1970-01-01
      • 2017-06-15
      • 2017-11-04
      • 1970-01-01
      相关资源
      最近更新 更多