Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,512
» Latest member: ebaazi06
» Forum threads: 38,596
» Forum posts: 174,830

Full Statistics

Online Users
There are currently 480 online users.
» 1 Member(s) | 475 Guest(s)
Bing, Google, Yandex, AOL, snippsat

Latest Threads
Start Idle in a virtual e...
Forum: General Coding Help
Last Post: snippsat
3 hours ago
» Replies: 4
» Views: 176
How to install Selenium o...
Forum: Web Scraping & Web Development
Last Post: Larz60+
Yesterday, 08:50 AM
» Replies: 1
» Views: 141
nltk installs but cannot ...
Forum: General Coding Help
Last Post: sheepog
Yesterday, 01:28 AM
» Replies: 1
» Views: 186
JavaScript File?
Forum: Bar
Last Post: Azdaghost
May-29-2025, 06:13 PM
» Replies: 0
» Views: 121
Error without reason
Forum: General Coding Help
Last Post: RogereK
May-29-2025, 09:52 AM
» Replies: 4
» Views: 376
Nested Dictionaries, good...
Forum: General Coding Help
Last Post: Curbie
May-28-2025, 10:45 PM
» Replies: 6
» Views: 718
Simple webbot for testing
Forum: Jobs
Last Post: Arush
May-28-2025, 06:59 PM
» Replies: 1
» Views: 1,083
Using moviepy fails due t...
Forum: General Coding Help
Last Post: sheepog
May-28-2025, 06:57 PM
» Replies: 2
» Views: 315
Script broke with Python ...
Forum: Code sharing
Last Post: Arush
May-28-2025, 06:51 PM
» Replies: 5
» Views: 6,287
Mathematica code vs Pytho...
Forum: General Coding Help
Last Post: Arush
May-28-2025, 06:27 PM
» Replies: 1
» Views: 950

 
  Can I check multi condition for 1 item in a easy way?
Posted by: korenron - Apr-28-2022, 01:42 PM - Forum: General Coding Help - Replies (4)

Hello,
I want to check if 1 item apper in 4 lists
right now this is how I do this:
[python]
if item is not None and item is not False and item n..... More

Print this item

  Cannot install TensorFlow 2.2 in Windows 10
Posted by: Led_Zeppelin - Apr-28-2022, 01:41 PM - Forum: General Coding Help - Replies (1)

Can I install TensorFlow 2.2 on Windows 10?

I have tried

pip install TensorFlow==2.2

and

conda install TensorFlow==2.2

and it says tha..... More

Print this item

  How split N days between specified start & end days
Posted by: SriRajesh - Apr-28-2022, 12:26 PM - Forum: General Coding Help - Replies (2)

Hi,
I have start date and end date. I want to split it to N-equal days.
start_date = "2022/04/10 00:00:00"
end_date = "2022/04/14 00:00:00"
I wa..... More

Print this item

  ImportError: /home/ali/Documents/test/charm/core/crypto/AES.cpython-39-x86_64-linux-g
Posted by: Anldra12 - Apr-28-2022, 07:07 AM - Forum: General Coding Help - No Replies

[b][color=#1ABC9C]I am working with charm crypto using python 3.7.1 and I have created a small database as shown in the codes as I run the code gettin..... More

Print this item

  how to add the Qcompleter into a ui-converted script?
Posted by: 53535 - Apr-28-2022, 06:53 AM - Forum: GUI - Replies (8)

[python]
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QApplication,QFileDialog,QCompleter,QLineEdit
import s..... More

Print this item

  Get image from PI camera and analyze it
Posted by: korenron - Apr-28-2022, 06:49 AM - Forum: General Coding Help - No Replies

Hello,
I'm trying to write a code for detecting license plate number ,
until now I took a saved image and did all the testing on it
I want to che..... More

Print this item

  Write to a LCD display using i2c to a Raspberry Pi using i2c 6398 4x20 LCD
Posted by: Aggie64 - Apr-28-2022, 12:49 AM - Forum: General Coding Help - Replies (4)

I have been unable to find out how to write normal ascii data to a LCD display using i2c.
One of the code snippets I have tried is:
Bus=smbus,SMBus..... More

Print this item

  what is wrong. Why python doesn't ad my values ?
Posted by: Bubu93200 - Apr-27-2022, 09:18 PM - Forum: General Coding Help - Replies (8)

Hi,

Sorry for my bad english.

I need your help, please.
Something is wrong in my code and I don't understand what.

[python]
r1 = {'value 1'..... More

Print this item

  Empty output for NLTK function in CGI script
Posted by: stanislav - Apr-27-2022, 04:02 PM - Forum: Networking - Replies (1)

Hi! I use python NLTK library in CGI script to tokenize some text in XAMPP web server. If i simply use:
someamountoftext = "someamountoftext someamou..... More

Print this item

  database decision....
Posted by: DPaul - Apr-27-2022, 03:45 PM - Forum: Bar - Replies (1)

Hello,
I have MariaDB up and running (see previous post), it's Miraculous!
Now, I have a decision to make on how to proceed. I'm afraid it's a lengh..... More

Print this item

  Image processing
Posted by: MNO - Apr-27-2022, 06:34 AM - Forum: Homework - No Replies

Have to find largest file in a partition of an diskimage tried to make a definition for it but doesn't seem to work
[python]def LF_file():
large..... More

Print this item

  Split a number to list and list sum must be number
Posted by: sunny9495 - Apr-27-2022, 05:10 AM - Forum: General Coding Help - Replies (5)

How to split a number to list and list sum must be number

Example :

x = 8
i want to split and make a list with 3 items and the sum of list must..... More

Print this item

  something is wrong with my code
Posted by: 53535 - Apr-27-2022, 04:42 AM - Forum: GUI - Replies (9)

i made a ui , and converted it into code and add two lines , it worked untill i want to use a variable , see the code below :
[python]
from PyQt5 impo..... More

Print this item

  Sort Differences in 2.7 and 3.10 Explained
Posted by: dgrunwal - Apr-26-2022, 10:45 PM - Forum: General Coding Help - Replies (2)

Python coders,

Is there a particular reason/change that causes this sort result between versions? How common is this kind of change in Python? Do..... More

Print this item

  Dictionary from a list failed, help needed
Posted by: leoahum - Apr-26-2022, 08:29 PM - Forum: General Coding Help - Replies (7)

Hi,

I am trying to get a dictionary from a list like ["a", "b", "c", "a", "c"]. The out come is expected to be {"a": [0, 3], "b": [1], "c": [2, 4]}..... More

Print this item

  Waiting for heavy functions question
Posted by: philipbergwerf - Apr-26-2022, 08:09 PM - Forum: General Coding Help - Replies (14)

I have written a program that writes a music score based on a text file with a certain syntax. I use tkinter as gui and draw engine to draw the score ..... More

Print this item

  Matching multiple parts in string
Posted by: fozz - Apr-26-2022, 02:48 PM - Forum: General Coding Help - Replies (31)

What I'm trying is to match a string with a substring, in the substring there are wildcards added, I tryed the next without luck, it is only matching ..... More

Print this item

  Creating a Dataframe from Zenodo zip file with multiple CSVs about Spotify
Posted by: man0s - Apr-26-2022, 01:45 PM - Forum: Data Science - No Replies

I am trying to make a dataframe that combines all the CSVs from a zip with spotify data from zenodo. The zip is the charts.zip from here: https://zeno..... More

Print this item

  Can you print a string variable to printer
Posted by: hammer - Apr-26-2022, 12:20 PM - Forum: General Coding Help - Replies (2)

I can not send a string variable to the printer because it keeps looking for a file. I have printed the string variable out on the terminal window and..... More

Print this item

  Element wise computation
Posted by: divon - Apr-26-2022, 12:20 PM - Forum: General Coding Help - Replies (2)

Hello everyone

Suppose I have two arrays:
[Image: generator-matrix.png]
and
[img]https://i.ibb.co/xzkyZN8/received-me..... More

Print this item

  what is wrong with my code?
Posted by: 53535 - Apr-26-2022, 10:36 AM - Forum: GUI - Replies (11)

[python]
from PyQt5 import QtCore, QtGui, QtWidgets
import sqlite3
from PyQt5.QtWidgets import QMainWindow, QApplication,QFileDialog,QLabel
import os
..... More

Print this item

  AttributeError: 'list' object has no attribute 'upper'
Posted by: Anldra12 - Apr-26-2022, 09:43 AM - Forum: General Coding Help - Replies (4)

Get the AttributeError: 'list' object has no attribute 'upper'
Return this line the keywords 'upper'
[python]def keyg..... More

Print this item

  can you please help me with this python code
Posted by: MetsxxFan01 - Apr-26-2022, 06:18 AM - Forum: Web Scraping & Web Development - Replies (2)

[python]import urllib.request
from bs4 import BeautifulSoup

url = "http://py4e-data.dr-chuck.net/known_by_Fikret.html"
html = urllib.request.urlopen(..... More

Print this item

  get out of while loop and stop repeat
Posted by: Frankduc - Apr-25-2022, 11:59 PM - Forum: General Coding Help - Replies (11)

hello,

I am trying to get my function out of the loop and avoid sending multiples emails.


[python]def courriel():
print("intruder!")
..... More

Print this item

  Extract parts of multiple log-files and put it in a dataframe
Posted by: hasiro - Apr-25-2022, 07:07 PM - Forum: General Coding Help - Replies (4)

Hi everyone

As I posted a few weeks ago (https://python-forum.io/thread-36845-[url=https://python-forum.io/thread-37036.html]..... More

Print this item

  problem handling redirection
Posted by: dhdurgee - Apr-25-2022, 05:49 PM - Forum: Networking - Replies (2)

I am attempting to update a python script from 2018 to handle some new cases and have encountered a problem I have been unable to solve.

This scrip..... More

Print this item

  TimeOut a function in a class ?
Posted by: Armandito - Apr-25-2022, 01:06 PM - Forum: General Coding Help - Replies (1)

Hey everyone !

Here is my problem : I have defined a class, where I have defined some functions. In the __init__ of my class I can call some..... More

Print this item

  Need help with my code
Posted by: NeedHelpPython - Apr-25-2022, 12:49 AM - Forum: Homework - Replies (1)

For my summary function, what I want it to complete is to get the student with the most courses completed and the highest average. I am having trouble..... More

Print this item

  Closing logger from other function problem
Posted by: Paqqno - Apr-24-2022, 09:19 PM - Forum: General Coding Help - Replies (1)

I have problem with loggers. One function of my program is initiazing logger in specified directory. Second function is closing this logger in order t..... More

Print this item

  How to insert data in a dataframe?
Posted by: man0s - Apr-24-2022, 06:12 PM - Forum: Data Science - Replies (1)

I want to insert lots of csvs in one dataframe. They are from zenodo and are charts from spotify. The .zip archive has three folders, 2017, 2018, 2019..... More

Print this item

  How to plot 2 graphs in one figure?
Posted by: man0s - Apr-24-2022, 06:06 PM - Forum: Data Science - Replies (1)

The below code returns 2 seperate graphs, how can I combine them in one figure?
[python]
sns.set()
sns.set_context("notebook")
sns.set_style("dark..... More

Print this item

  Resources for printing tabledata-Linux and Windows
Posted by: hammer - Apr-24-2022, 01:17 PM - Forum: General Coding Help - Replies (4)

I apologize for asking a "how to" question but I am a "blank slate" when it comes to printing and what little info I turn up on the subject is complex..... More

Print this item

  magic related field in Django model
Posted by: sonh - Apr-24-2022, 07:46 AM - Forum: General Coding Help - Replies (1)

Hello

I have a Django model class as:

[python]
from django.db import models

class DeliveryUpdate(models.Model):
delivery_id = models.Ch..... More

Print this item

  Insert a multiple constant value after header in csv file using python
Posted by: shantanu97 - Apr-24-2022, 06:41 AM - Forum: General Coding Help - Replies (1)

Is it possible to insert 9 new lines of Constant Value("AA") in a CSV starting from the 2nd row? I need to insert the "AA" at the top 9 rows(after the..... More

Print this item

  Want to shorten the python code
Posted by: shantanu97 - Apr-24-2022, 06:19 AM - Forum: General Coding Help - Replies (3)

My code works fine. However, I would like to shorten my code if there is a shorter way to write this. Does anyone have a solution? I have a lot of rep..... More


Attached Files

.py   Check.py (Size: 116.62 KB / Downloads: 247)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Start Idle in a virtual e... 3 hours ago Pedroski55 snippsat General Codin...
  How to install Selenium o... Yesterday, 08:50 MarkMan Larz60+ Web Scraping ...
  nltk installs but cannot ... Yesterday, 01:28 sheepog sheepog General Codin...
  JavaScript File? 05-29, 18:13 Azdaghost Azdaghost Bar
  Error without reason 05-29, 09:52 Azdaghost RogereK General Codin...
  Nested Dictionaries, good... 05-28, 22:45 Curbie Curbie General Codin...
  Simple webbot for testing 05-28, 18:59 narcpl69 Arush Jobs
  Using moviepy fails due t... 05-28, 18:57 sheepog sheepog General Codin...
  Script broke with Python ... 05-28, 18:51 aspecteleven Arush Code sharing
  Mathematica code vs Pytho... 05-28, 18:27 MiloChocolatito Arush General Codin...
  Looking for ideas 05-28, 18:14 Azdaghost Arush Bar
Most views
  The best Prog... 571049
  Tutorial Requ... 479745
  Web Scraping ... 435687
  Newbie with P... 377316
  Thread remain... 349207
Most reputation
buran 581
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12055
buran 8172
snippsat 7331
deanhystad 6831
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ebaazi06 Today
blockaway Today
lilysmith10 Today
Williamseire Today
waqarhaider Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020