Skip to content

Tag: python

Updating boxplot when choosing rows

I need to allow users to choose particular rows in a data frame and generate a boxplot. My implementation does not allow me to update a boxplot when I choose rows. Can somebody please point out what I do wrong? I am interested in only one column which is [‘Phase’]. Here is my implementation. Answe…

403 Forbidden error when getting cat images

I just finished programming a dog photo program, and after a few issues it works fine. I decided to make a modified version that uses a different api to give cat images instead. It took a second to figure out but after changing the format, I get this error: urllib.error.HTTPError: HTTP Error 403: Forbidden Th…

validation of words in a sentence

I am trying to set validation for given sentence (input). These are criteria Word contains letters, hyphens and punctuation only (no digits) Maximum number of hyphen is one per word. If present, hyphens must be placed between letters (“ab-ab” not “-ab” or “ab-” Maximum numb…