pysnow icon indicating copy to clipboard operation
pysnow copied to clipboard

Conversion to dataframe, options around "Display_Value"

Open weyCC81 opened this issue 3 years ago • 0 comments

What I am doing df = pd.DataFrame(response.all())

Where I have a problem I would like for example to return "assignment_group" as a "Display_Value" and "calendar_stc" as a normal "Value".

  • If I am setting parameters.display_value = True, I get for example 'Group A' and '945,991'
  • If I am settting parameters.display_value = False, I get for example '1404x551e4c6c500b94fa1eeac1ce6a9' and '945991'

What I would like to have A dataframe with the correct type, for example "string", "float64" or even "category" instead of "object". df.info()

Request Is it possible to enable or disable "Display_Value" for specific fields or even have a dataframe returned from response.all() instead of a series?

weyCC81 avatar May 29 '22 15:05 weyCC81