advanced_options
  • 17 Oct 2021
  • 1 Minute to read
  • Dark
    Light

advanced_options

  • Dark
    Light

Article summary

The advanced_options parameter for get_hits() is a simple wrapper to the read_csv function; see the Pandas read_csv documentation to view all of the available parameters for advanced_options.

The example below uses the index_col parameter found in read_csv. This function can be very useful; therefore, IMAT Solutions has made it available for users.

q = get_hits('()diabetes', store='Records', fields='extract.patient_id, extract.age', advanced_options={'index_col': 0})

In this example the writer is retreiving all diabetic patients. However, the report writer finds that using the default sequential index (0, 1, 2, 3…) isn't as useful as using the patient ID as the index of the dataframe. Using advanced_options gives the writer flexibility with reading data.


Was this article helpful?

What's Next