Skip to content

Tag: python

I cannot parse this xml file in python

I am trying to create an API connection and response is looking like below. I need to parse this data and turn it into a pd dataframe and/or create loop to find specific information belong to tags. Below is the code i try to run but it returns with empty list, and it looks not iterable. Also it is not

Django get user data in main template

I’m trying to check if user logged in in the main template using this: but it’s not working maybe because main template doesn’t have a view could any one help i don’t know if the question duplicated,but i didn’t find my answer. Answer you could use:

Hydra combine lists in config

Say I have the following hydra config test.yaml: is it possible to merge list1 and list2 into a new list that contains [0,1,2,3], perhaps using variable interpolation? Here is the hydra code: Attempt (failed): list3 gives [0,[1,2,3]] The reason I want this is because I have some lists of unknown length in oth…