Skip to content
Advertisement

Category: Questions

How to deny letters and symbols in loops

I only want my code to accept numbers between 1 to 9. I tried try except, logical operators, isdigit, but I just can’t do it. Answer It look like you’re trying to print out the prompt based on the user input, and you want to make sure that it’s not higher the 9 and lower than 1. You need to

How can I extract specific value from JSON response?

Hi I am trying to get value from JSON response which Im getting from GitLab API. Code should extract “commiter_name” value but it does not work, already tried several options from internet. Error: Answer This is because you did not include you api token in the header. Also please check that the website you are pointing to in the request

How to Make Coordinates on Sympy Cartesian Graph

I’ve browsed everywhere but there is no answer that can be used as a reference for making coordinates on a sympy python Cartesian graph. Here and here I’ve studied but still can’t solve the problem I found in my code. I want a = 1 and b = 3 to be connected to the x and y axes. Any help

Get index of row where pandas column contains regex

I am checking to see if a pandas column matches a pre-defined regex, using .any() to get the first match if found. However, I need to return the index/row where this match occurred so that I can get the value of another column in that row. I have the below to check where the reg_ex pattern exists in df[‘id_org’] Once

Advertisement