I have made a feedback form. Now I want to make a user list of those who have given feedback on the particular product. My motive is, that if any user gives feedback on a particular product, he/she won’t be able to give another feedback on that particular product and can’t see the feedback form. A…
Tag: python
how to show only the first letter of an element of a string [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago. Improve this question I have a list of words i.e. [‘cat’, ‘dog’, ‘…
Loop through variable in python
Please forgive me… new to python and first question on stack. I’m trying to accomplish two things with while loop: increment round number (i’m doing this successfully) have the loop iterate over my variable “fruits” to print the first fruit on round one and second fruit on round …
Numpy Delete not deleting rows
I’ve been trying to write some code to delete rows from my 2d array according to the following criteria: every lone entry, so that no patient only has one entry (the mriindex ticks up by 1 for every entry of the same patient in the array) every entry above the 4th one. Should either of those criteria be…
How to resolve the Error in anaconda start up?
Few days ago, Anaconda Navigator used to work fine but now it won’t open; I’ve even reinstalled the navigator but still getting the same issue. Here is the error message Navigator Error: Main Error Traceback Answer According to github the problem lies with “config.yaml” file in C:Users…
I have made a bit of code that gets your resolution in Windows, how do I make it print it in an f string?
I have made a bit of Python code that gets your resolution in Windows, how do I make it print it in an f string? Its output is 1920×1080, but I need it to be like because it’s going to be among other code as I am trying to remake neofetch. Unless there is a better way of getting your
Updating values within python column based on date
I have a dataset where I would like to replace and update values within a column when a data condition is met. Data Desired Doing Still researching, any suggestion is appreciated- Perhaps I need to convert quarters to datetime longdate and base the condition off of this column. Answer here is one way to do it…
Regex: searching for words that starts with @ or @
I want to create a regex in python that find words that start with @ or @. I have created the following regex, but the output contains one extra space in each string as you can see However, the output that I want to have is the following I would be grateful if you could help me! Edit: @The fourth
How do I coalesce Pandas columns only where the beginnings of the columns don’t match?
I have a table with some company information that we’re trying to clean up. In the first column is a clean company name, but not necessarily the correct one. In the second column, there is the correct company name, but often not very clean / missing. Here is an example. Name Info Nike Nike, a footwear m…
Why do I get `secretmanager.versions.access` denied in GCP?
I am trying to access a secret stored in secrets manager. I created a service account with owner role. I created a key from it. I run: but I get: I checked the secret_name was the same as the secret’s value in secret manager. I have tried adding Secret Manager Secret Accessor and Secret Manager Viewer r…