Questions tagged [python-3.x]
USE ONLY IF YOUR QUESTION IS VERSION-SPECIFIC. For questions about Python programming that are specific to version 3+ of the language. Use the more generic [python] tag on all Python questions. Use the [python-2.x] tags for Python 2 questions.
I am trying to calculate the 7 days moving average for covid cases. I have a date frame with a column that has all the covid cases and another column that contains the days from the start date.
i am trying to make Lingo game in python but i am not getting quick output,I use random.choice() to short the list of target words but still the average turn for 6 letters word takes more than average ...
Given an array or a list x, find the largest sub array such that the element satisfies the following condition:
x[i] = x[i-1] + x[i-2]
If more than one sub array satisfies this condition, then:
If I understand the date formatting from the Standard Library docs correctly, the following
from datetime import date
date(1, 2, 3).strftime("%Y-%m-%d")
should produce "0001-02-03"...
xml is :
<?xml version="1.0" encoding="UTF-8"?>
<Page xmlns="http://gigabyte.com/documoto/Statuslist/1.6" xmlns:xs="http://www.w3.org/2001/XMLSchema" ...
I am running a python script on RaspberryPi 4, and today when I ran the script again, it showed me the error ModuleNotFoundError: No module named 'adafruit_ssd1306' although I ran this same script ...
I have tried launching jupyter notebook through python 3 but Suddenly for last two days I could not launch it and I get error when opening a notebook as 'connection failed ; A connection to the ...
Create a function that gets three arguments x,y,z as input and return the number of values in the range between x and y(both x and y are included) and evenly divisible by z.
i have a csv file like this :
When I log into my web application, it doesn't redirect to the custom redirect page created instead it redirects to the default accounts/profile url in Django. Below are my codes :
I want to measure perplexity of pretrained_model.
This pretrained_model is self_made.
The code is as follows.
logger = logging.getLogger(__name__)
I currently have code that is writing to a csv file, however, it keesp replacing the first row of the file and overwriting it instead of writing of it.
NOTE: I have this function inside a for loop ...
I'm about to finish developing an automated program on Python and the only thing that's stopping me it's a web element that gets immediately hidden when I try to inspect it from an OpenSea page (can't ...
How to replace the border of M matrix with the given list clockwise?
This is my Input matrix -M
1 2 3
4 5 6
7 8 9
(Here 3-rows 3- columns)
and this is my list to replace all the border values ...
In my repository I had a shell file get_data.sh with this kind of command:
wget --load-cookies /tmp/cookies.txt \