My code works fine and it exactly does what it is suppose to do. However, it has too many levels of indentation. I wonder if anyone here has anyway to reduce nu
How should i extract info i only need from <dt> and <dd> tags ? P.S and there is a lot of pages like that - hundreds Here is link for main page: ht
In the math module, I could only find math.cos(x), with cos/sin/tan/acos/asin/atan. This returns the answer in radians. How can I get the answer in degrees? He
So I am trying to automate the dropping of TABLES in my Postgresql table I ensure the connections are working, I have done multiple queries previously, Now I wa
I nearly finished my application, when the customer asked if I could implement some kind of login form on application startup. So far I have designed the UI, a
I'm trying to scrap phobos website using bs4 and getting 418 teapot error Here is my code ....I am getting error when i am using build_opener.open from url
I have this dataframe below and I would like to know how I can make a graph similar to the one I inserted in the attachment. Can you help with some material or
I am unable to hide the label, division and parent from hover tooltips path=[pune,division,taluka,village] value = df['Project Count'].tolist() fig_sunburst = p
I have pickled a RF model on my machine and its size is of 360Mb, Now I want to upload it to GitHub but I cannot do it by file upload nor by the terminal, I tri
>>> df = pd.DataFrame({'id': ['1', '1', '2', '2', '3', '4', '4', '5', '5'], ... 'value': ['keep', 'y', 'x', 'keep', 'x', 'Keep', 'x'
currently I'am training my Word2Vec + LSTM for Twitter sentiment analysis. I use the pre-trained GoogleNewsVectorNegative300 word embedding. The reason I used t
My code yes = input("my input: ") if yes == "yes" or "yEs" or "yeS" or "Yes" or "YEs" or "YES" or "yES" or "YeS" or "Y" or "y": print("cor
I'm looking for help to highlight/color particular data points on the parallel coordinates plot. I can't seem to find a way that work. Essentially, I want to pl
My program cannot run thought the entire loop because a leak crashes it before it gets to the end. I have the following script: from requests_html import HTMLSe
After making a few interfaces using the PySide6 library I keep having this issue where the custom background that I initialize turns black when calling a setSty
my code is like this and I send data through httpClient and it returns error on upload my angular version is 13 and django version is 4 and I'm using django res
I am more or less following the code below to merge two audio files. It mostly works, where audio segment can export both the original files and the combined fi
This is my Code * corr_matrix = np.corrcoef(data['Average dewpoint (°F)']data['Average temperature(°F)']) corr = "corr = " + str(round(corr_matrix[1][0]
Stackoverflow Hi python noob here. I been learning python for couple of weeks so I don’t know if this is possible or even super easy. I have an excel file
Let's say I have an entity which is mapped to a postgresql table in sqlalchemy. @dataclass class User: id: int email: str password: str country: