Regex to parse out substring, two options

I have a list of group names that all either contain prod or nonprod inside of the name. I would like to extract out the prod or nonprod from the group name for each row. Is there a regex that could do this? Group name examples: eap-edp-refined-nonprod-adp eap-edp-reporting-prod-gcp eap-edp-ingestion-nonprod-lunar eap-edp-ingestion-prod-google I would just want to… Read More Regex to parse out substring, two options

Selenium Python XML parsing

I need to parse XML with Selenium, but the XML is not a file, it is on the web. Here is the site https://www.thetutorsdirectory.com/usa/sitemap/sitemap_l1.xml and I need to get all the links for example this one <url> <loc>https://www.thetutorsdirectory.com/usa/location/private-tutor-anaheim</loc&gt; <changefreq>weekly</changefreq> </url> Please help me 🙂 I tried multiple solutions that were given on this site >Solution… Read More Selenium Python XML parsing

Create Dataframe from list of strings of delimited column names and values

I have a list of strings: data = [‘col1:abc col2:def col3:ghi’, ‘col4:123 col2:qwe col10:xyz’, ‘col3:asd’] I would like to convert this to a dataframe, where each string in the list is a row in the dataframe, like so: desired_out = pd.DataFrame({‘col1’: [‘abc’, np.nan, np.nan], ‘col2’: [‘def’, ‘qwe’, np.nan], ‘col3’: [‘ghi’, np.nan, ‘asd’], ‘col4’: [np.nan, ‘123’,… Read More Create Dataframe from list of strings of delimited column names and values

Needing help extracting a date from a string in Javascript

So I have an axios call that fetches an object that looks like this… { "meeting_id": "982a4867-2b3e-41a7-a5e2-22d86094c980", "meeting_topic": "GCA Help", "created_at": "2022-10-31T20:30:33.568Z", "updated_at": "2022-10-31T20:30:33.568Z", "meeting_start_time": "2022-07-09T02:01:19", "meeting_end_time": "2022-07-09T03:01:19", "mentor_id": "882eb36a-d154-480d-89d4-a1cad1aa7330", "mentee_id": "50ef4f37-b8bd-4c93-a9a3-625e38c2c5cb", "admin_meeting_notes": "Meeting notes here!", "mentor_meeting_notes": "Mentor meeting notes", "mentee_meeting_notes": "Mentee meeting notes", "meeting_missed_by_mentee": "Attended", "user_id": "63447ddfe85cb425b0fed28e", "profile_id": "50ef4f37-b8bd-4c93-a9a3-625e38c2c5cb", "role": "mentee" } I need… Read More Needing help extracting a date from a string in Javascript

Parsing JSON object list to array in React

I am trying to parse JSON object that I receive from API to array using useEffect. This is JSON data that I receive: { "results": [ { "id": 1, "email": "tmp@gmail.com", "password": "$2b$10$AB0WHdpP.aEpMdEg780ssej", "role": "student", }, { "id": 2, "email": "tmp2@gmail.com", "password": "$2b$10$nhhUL.angMUh6WhyCWp33.n", "role": "mentor", } ] } This is the part of the code… Read More Parsing JSON object list to array in React