Skip to content
Advertisement

Tag: python-3.x

Python To-Do List List/Loops

Been having some trouble with trying to make this to do list code. I’m trying to Write a program that will prompt the user to enter an item for their to-do list. Each item is then added to a list. When the user enters no input, the program will display the to-do list in two columns. The thing is though

python: subprocess returns nothing when running scripts which take longer time

Beginner here with subrpocess problem: The below line works fine when I run both the scripts with less data which takes around 10-20minutes, however with bigger data to be processed the subprocess returns nothing once both the scripts are completed (lets say in an hour). Also: Often with lesser data, it behaves abnormally as well i.e. not returning the status_code/going

Systematically rewiring functions

I have a number of classes where most methods merely ‘rewire’ method calls to self.value, and return a new instance: Of course, not all methods inside are like this, but most are. Instead of having to implement explicitly someMethod, someOtherMethod and __add__, is there a way to do this systematically? Perhaps with __getattr__ or __getattribute__? Here is why subclassing the

Using pretrained model with keras: AttributeError: ‘NoneType’ object has no attribute ‘shape’

I’m running a Keras Neural Network model for a binary classification of images. I use the first layer of a pretrained VGG16 model and i created the last fully connected layers from the tutorial: https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html With Tensorflow backend 2.3.1, Python 3.6, Keras 2.4.3 While i’m training my model (using presaved weights) with an ImageDataGenerator, this exception occurs: That’s my code

Labels and buttons not appearing PyQt5, Python 3 [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 2 years ago. Improve this question

Pandas get column values based on duplicate rows

I have a sample DF: OP: I am trying to get the values of columns – “A” and “B” wherever there are duplicate values in column col. For example the column col has value Apple in index – 0,1,3,5 and I am trying to get the respective values in column – A and B, ie I have a iterative approach

Advertisement