Quantcast
Channel: Active questions tagged python - Stack Overflow
Browsing all 23131 articles
Browse latest View live
↧

Why do I get negative temperature values?

I have a problem with my code. I want to get average temperature for the city of Kiev, but I get negative temperature values for all seasons and I don't know why. It's nothing wrong with the conversion...

View Article


Pandas: move values from one column to an appropriate column

My google-fu is failing me. I have a simple dataframe that looks like this:SampleSubjectPersonPlaceThing1-1Janet1-1Boston1-1Hat1-2Chris1-2Austin1-2ScarfI want the values in the subject column to move...

View Article


How to use a pandas series of arrays, each containing dataframe indices, to...

This is from the 1990 California Housing Dataset used in Geron's Hands-On Machine Learning. That might be helpful context, but this is more of a pandas/numpy question. I have a solution, but I'm...

View Article

"There are no scenes inside that module" -manim

I am new to manim. I have been rendering a few examples of basic shapes and it has been working fine. Today the same code throws me the "There are no scenes inside that module" error. What might the...

View Article

Failed to load dynlib/dll for tls-client-64.dll

FileNotFoundError: Could not find module 'C:\Users\garfi\AppData\Local\Temp\_MEI200362\tls_client\dependencies\tls-client-64.dll' (or one of its dependencies). Try using the full path with constructor...

View Article


No module named 'urllib3.packages.six.moves'

I'm trying to use the groupme API with GroupyAPI, but I'm having some issues with urllib3.import urllib3Traceback (most recent call last): File "<stdin>", line 1, in <module> File...

View Article

Formatting multiplication tables in python NOT HOW TO just some explanation

I'm meant to make a multiplication table in python using nested loops. I had trouble formatting it to make a table and looked for answers online. I came across a solution:uplim=int(input("What is the...

View Article

Image may be NSFW.
Clik here to view.

PyQT5 sizing issue with QTableView and QGridLayout

I built a GUI program that has outputs on single line tables, and I recently updated it using QGridLayout to make it dynamically adjust to different system scalings.The issue I'm having is the pandas...

View Article


Is it possible to save data in an application after restarting the...

I created a to-do list type app. In the application, the user can create his own new task. However, after closing the application, not all tasks were saved. Can this be fixed by...

View Article


problem after using convert_marian_to_pytorch.py script to convert opus mt model

After utilizing the convert_marian_pytorch.py script to convert an OPUS translation model to a format compatible with Hugging Face Transformers, I uploaded the resulting model to Hugging Face's model...

View Article

python os.getenv() don't see any of my custom variables from Jupyter notebook...

I declared several variables in my bash (through ~/.bash_profile) , and they work in bash itself as well as in python started in bash.Example:export...

View Article

I am trying to make it where you can move a mouse on a website using python

I am making a project where i can hit a button on a website and it will run python code that moves your mouse with "WASD" but when i try and use ngrok to let others use it, it does not move i thought...

View Article

is it possible to create s3 event notification for to 2 lambda funtions or 2...

is it possible to create s3 event notification to trigger 2 lambda functions (success function and failure function) or 2 sqs for (success upload or failure upload), what I am trying to achieve is I...

View Article


Image may be NSFW.
Clik here to view.

Density plot to predict object count

I'm trying to count the number of objects (larvae in this case), from a video.This being the overall goal, I first tried density map on all the frames from the video.On looking at density plots more...

View Article

Pandas convert string to int

I have a large dataframe with ID numbers:ID.head()Out[64]: 0 48061050170871 48061050170872 48061050170873 49012950300894 4901295030089These are all strings at the moment.I want to convert to int...

View Article


Installation of ttk Themes for Tkinter

i'm currently trying to make some of my applications i built using tkinter look better. I read that you can change the theme of tkinter using ttk and got it to work with the built-in themes.import...

View Article

Image may be NSFW.
Clik here to view.

Predicting future stock prices using machine learning

I'm new to this and trying to predict stock prices training a machine learning model(xgb) in python. I start with getting the stock prices and then calculating techninchal indicators to use as...

View Article


autoencoder.fit doesnt work becaue of a ValueError

I don't understand what my problem is. It should work, if only because its the standard autoenoder from the tensorflow documentation.this is the errorline 64, in calldecoded =...

View Article

Trouble downloading a youtube playlist and converting to mp4 with audio/video

I am having difficulty with a side project I am working on. The goal of the program is to be able to do a few functions with a youtube video or playlist link.download a youtube video and audio and...

View Article

How to use Numba CUDA JIT decorator?

I've followed this tutorial to use Numba CUDA JIT decorator: https://www.youtube.com/watch?v=-lcWV4wkHsk&t=510s.Here is my Python code:import numpy as npfrom timeit import default_timer as...

View Article
Browsing all 23131 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>