0%

Exercise 7: explore null values

Run the query below and answer the questions: how many fields will be in the generated dataset? Why?

num_found, df = solr_request(
    core='statistical-result', 
    params={
        'q': 'NOT mp_term_name:[* TO *]',
        'fl': 'marker_symbol,effect_size,p_value,mp_term_name',
        'rows': 3
    }
)

Go to exercise 7 in the Google Colab. Once you’ve finished Exercise 7 in the Google Colab, return here to continue the tutorial.

Show the correct answer

NOT mp_term_name:[* TO *] filters for items where mp_term_name is null. Therefore, in the generated dataset, there will be only three fields: marker_symbol, effect_size, and p_value.

Once you have finished exercise 7, continue to the next section where we will learn about efficiently downloading large datasets.