How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [python-3.x]

For questions about Python programming that are specific to version 3+ of the language. Use the more generic [python] tag on all Python questions, and only add this one if your question is version-specific. Use the [python-2.x] tags for Python 2 questions.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Classification tasks using Recurrent Neural Networks pipelines

For the classification tasks of satellite images, I wanted to build a general training pipeline to train deep learning models. For this, I want to use recurrent neural networks (LSTM) for the ...
0
votes
0answers
6 views

redirect request problem or bad request format

i have problem to make scrappy from this website http://assr.parcelquest.com/Statewide/Index i want that my spider get the address when i write the marinCouty parcel number, i wrote the next code: ...
0
votes
0answers
9 views

Why can't I patch the grpc.Server in multiple of my python unit tests

I've hit a bit of a wall with some unit tests I'm trying to write. Here is a distilled version that creates the same problem: import unittest from unittest.mock import patch from concurrent import ...
1
vote
0answers
38 views

Faster for-loops with arrays in Python

N, M = 1000, 4000000 a = np.random.uniform(0, 1, (N, M)) k = np.random.randint(0, N, (N, M)) out = np.zeros((N, M)) for i in range(N): for j in range(M): out[k[i, j], j] += a[i, j] I ...
0
votes
1answer
25 views

Using line.replace in Python3 to renumber a sequence of numbers

I have an output file from another part of code: 1434 CPM 3.958 20.716 72.669 94 1438 1465 1435 CPM 1.836 16.422 71.695 94 1441 1448 1436 CPM 2.634 ...
0
votes
1answer
14 views

Get Instagram followers list with python script

I'm beginner in python programming and i want to export my Instagram followers and following list into an excel file. Searching on Google i found this post. I will paste the code bellow: # Get ...
0
votes
0answers
3 views

Issue applying rounded corners to a mask in PIL

Hi I'm having an issue with adding rounded corners to the mask of an ellipse I'm drawing in PIL. Here is what I'm working with: def draw_ellipse(image, bounds, width=1, outline='white', antialias=4): ...
0
votes
0answers
7 views

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte while reading a text file

I am training a word2vec model, using about 700 text files as my corpus. But, when I start reading the files after the preprocessing step, I get the mentioned error. The code is as follows class ...
0
votes
0answers
19 views

Match a specific string inside parentheses using Regex in a Python app

I'm quite new to coding and I'm trying to fine-tune my first Python programme with a real world-application. My programme iterates through some dictionary lines that have been extracted from an XML ...
0
votes
0answers
7 views

TypeError: __init__() got an unexpected keyword argument 'topic' POPULATING SCRIPT

So, I tried to populate my code my django website when i came across type error.i am really new to django webframe work and have no idea why i got this error. I followed a tutorial on udemy. ''' ...
-1
votes
0answers
20 views

Python Reddit Scraping: Errno 63 Filename too long

When trying to scrape posts from subreddit i get the following error message on some of the URLS i enter: [Errno 63] File name too long: I have been looking into the code and trying to find out how ...
0
votes
0answers
13 views

recursively copying and renaming file works, then stopped unexpectedly

Context 1.Needed to copy and rename image file repeatedly until certain counting number reached. 2.The renaming part have to met certain increasing step. 3.It's Python 3.7.0 Code import os import ...
0
votes
0answers
12 views

Why mysql varchar column appended .0 to phonenumer when we insert with python pandas

A table created with multiple columns with 5 phone number columns, all of them has data type like varchar(15) But when I insert phone number of 10 digits without - or () like 9999999999 then in ...
0
votes
0answers
7 views

How can I get a new tab to open when we click a button from the menu in pyqt?

How can I get a new tab to open when we click a button from the menu? class Window(QWidget): def __init__(self): QWidget.__init__(self) layout = QGridLayout() self....
1
vote
0answers
12 views

Will async-generators that don't have 'await' in its finally block be closed immediately when there is no reference to it?

According to this blog, normal generators will be immediately closed when there is no reference to it. (CPython exclusive though). My question is "Does this apply to async-generators that don't ...

15 30 50 per page
1
2 3 4 5
17144