bst365体育投注网址大全

Questions tagged [python]

Python is a multi-paradigm, dynamically typed, multipurpose programming language. It is designed to be quick to learn, understand, and use, and enforce a clean and uniform syntax. Please note that Python 2 is officially out of support as of 01-01-2020. Still, for version-specific Python questions, add the [python-2.7] or [python-3.x] tag. When using a Python variant or library (e.g. Jython, PyPy, Pandas, Numpy), please include it in the tags.

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

Finding duplicates in list of records

I have a variable with the below value, I need to ensure that all the ID's (id_value_N) are unique and all the Name's (Name_N) are unique. Also for a given record, in the SubNames we have all unique ...
0
votes
0answers
17 views

Python nested loops for renaming files

I would like to rename a file by using os.rename() like this: x_y.jpg x should come from a list ['2', '3', '4', '5', '8', '9', '10']. y should count from 1 to 10. After it reaches 10, x should jump ...
0
votes
0answers
7 views

Creating MLP model to predict the ratings that a user will give to an unseen movie using PyTorch

For my project , i’m trying to predict the ratings that a user will give to an unseen movie, based on the ratings he gave to other movies. I’m using the movielens dataset.The Main folder, which is ml-...
0
votes
0answers
8 views

Changing Keras backend from Theano to Tensorflow - AttributeError: 'int' object has no attribute 'dtype'

I am trying to execute a research paper's code written with Keras on Theano backend. My system is running it on Tensorflow backend by default. I am getting an error in the following code - import ...
0
votes
0answers
6 views

Get only latest data per type (function not working with large dataset)

I have a large dataframe with newsletter_name, launch_date, and the email that launch went to. I have multiple newsletters, all with multiple launches. I want to filter my dataset so that I only have ...
0
votes
0answers
5 views

How to avoid overlapping outputs in recommender system?

I have been testing kaggle million song recommender system using SVD (Singular Value Decomposition) algorithm to recommend five songs to user. I got the results but the results are overlapping like : ...
0
votes
0answers
4 views

MemoryError: Unable to allocate MiB for an array with shape and data type, when using anymodel.fit() in sklearn

Getting this memory error. But the book/link I am following doesn't get this error. A part of Code: from sklearn.linear_model import SGDClassifier sgd_clf = SGDClassifier() sgd_clf.fit(x_train, ...
0
votes
0answers
5 views

How do you build large complex application in python with kivy

How do you build complex application, I mean application with lots of code in kivy. Like a game that has many levels when you can't import one kivy file inside another(not .kv)
0
votes
0answers
4 views

How to catch Connection Reset Error from loop.sock_recv() function?

I am trying to catch a connection reset error from the loop.sock_recv function while trying to read bytes from client socket. I am testing a scenario when server closes the connection after a specific ...
0
votes
0answers
3 views

ReportLab Split Table

I am new to reportlab and a am having a problem formatting my document. I have a table that needs to be fitted at the end of a page. But the table is too long. Is there a way to split the table in two ...
0
votes
1answer
10 views

Input 'y' of 'Equal' Op has type bool that does not match type float32 of argument 'x'

I am working on spoken digit recognition project. Model Definition : input_layer = Input(shape = (max_length, 1)) //Takes input vectors input_mask = Input(shape = (max_length)) //Takes ...
0
votes
1answer
10 views

Is it possible to ban all browser extensions on all browsers with a python script?

I was curious if it was possible to write a Python (or any other language) script to ban all extensions on all browsers, and if so, if there was a particular high-level thought process I could go ...
0
votes
0answers
5 views

Tkinter matplotlib canvas updates too slowly for real time data

I am working with a device that sends 100 readings per second and I want my GUI to have a plot of this data showing the last 300 points collected. However, I have found that: appending a new data ...
0
votes
0answers
6 views

Python3 / Tkinter for loop displaying buttons with images in

Im using Python3.8 and Tkinter to create a program. I'm trying to loop through the below loop and print a button with the image from "onecard" as the image in the button. The problem I'm ...
0
votes
0answers
4 views

My Tkinter Window Freezes When I Use The Pyttsx3 Speak function

I am designing a application using the tkinter module. whenever I use the Pyttsx3 module speak function my window freezes or what it looks to like to me. It executes the pyytsx3 speak function first ...

15 30 50 per page
1
2 3 4 5
98935