I have code for calculating max depth using BFS, which works fine, but I couldn't figure out why it fails if I replaced for i in range(len(q)): with for i in q:
I make a barcode by zint. If it successes it will be creat a bmp file. But I want to its bmpdata. Now I get its bmpdata,I don't konw to show it by pyqt5.Becsuse
Recently, I've got a code test from ABC. Please take a look at this one and give me your idea. Find the max value of an array of N integers. E.g. [ 1, -6, 2, 0
I've been trying to take a pandas.Dataframe and drop its rows and columns with missing values simultaneously. While trying to use dropna and applying on both ax
I'm using Heroku as my server host of my Discord.py bot, but i am having a problem. the problem is: Traceback (most recent call last): File "test.py", line
In my Excel spreadsheet I need to enter excel formula on a bottom that will summarize values. Number of rows can be different. But not columns. So in cell B10 s
I'm wondering if it is possible to split BLF-files in Python? I know that there is a library (can) that supports BLF-files, but find no documentation on how to
i have already made a turtle string to make every letter in the aphabet, and assigned them to functions, so i only have to print a() for it to write out an A fo
I have a system where you manually input data, for example data about people. Some fields are mandatory but majority are optional. When the data is outputted it
I'm trying to write a custom operator for Blender that: Gets the objects currently in the scene (may be lots) Filters them based on some criteria Prompts the us
I am struggling to get the "alternates" attribute to work in the Django sitemap framework. class StaticViewSitemap(sitemaps.Sitemap): priority = 0.5 cha
I have a dataframe with a column called "snapshot_timestamp" where the time is in this format: 2022-05-01 23:45:47.428 (year, month, day, hour, minutes, seconds
So I wrote a program to write the different attributes like title, total number of comments, total upvotes, post body, author name of submissions in a CSV file.
I am trying to write a code in python to find all prime numbers of a number. My problem is that with this line of code it does not work to return the prime numb
I'm trying to test my view which requires csv_file and one parameter in request, but getting error "details": {"csv_file": ["The submitted data was not a file.
I'm using TensorFlow and would like to create a 1D tensor t1 from two smaller tensors t2 and t3, where len(t2) + len(t3) == len(t1) and a boolean mask which ind
I'm using pycaret.time_series alpha module but I have this problem avec launching my experiment. I think this is internal to the module. Can anyone help ? `from
Folks, I have converted a PDF using tabula-py and, due to the formatting (there are two lines with names in each name cell) I get this: col1 name doc col
My colab session always crashes while trying to import torch_geometric.data module. For reference, the code I am writing is as follows: import torch def&n
I need to capture the table from the link: https://fr.tradingeconomics.com/country-list/rating I tried the following code but I don't get any response from sel