Python Forum
Help with filtering in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with filtering in Python
#1
Hi, i am new to python and trying to learn a new language.

I am attempting to filter some output, but can't get my head around the syntax.

def filter_user_pools():
listpools = client.list_user_pools.filter(
Filters=[{'Id': 'UserPoolId'}])
for list in listpools:
    print(list.Id)
I am trying to output the filter the following output

{'UserPools': [{'Id': 'eu-west-1_asdasdg34', 'Name': 'JenkinsDevelopMarketplace', 'LambdaConfig': {'PreSignUp':...
I want the second field - eu-west_1

Any help, will be appericated.
Reply


Messages In This Thread
Help with filtering in Python - by Junes786 - Jun-03-2019, 02:19 PM
RE: Help with filtering in Python - by Yoriz - Jun-03-2019, 06:34 PM
RE: Help with filtering in Python - by Junes786 - Jun-05-2019, 08:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unexpected Output - Python Dataframes: Filtering based on Overlapping Dates Xensor 5 702 Nov-15-2023, 06:54 PM
Last Post: deanhystad
  csv filtering with python. KirkmanJ 12 181,116 Jun-26-2018, 11:29 AM
Last Post: KirkmanJ

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020