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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,389
» Latest member: atalieyandext4063
» Forum threads: 38,821
» Forum posts: 176,018

Full Statistics

Online Users
There are currently 34 online users.
» 0 Member(s) | 31 Guest(s)
Google, Bing, Mojeek

Latest Threads
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
7 hours ago
» Replies: 1
» Views: 46
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
10 hours ago
» Replies: 9
» Views: 224
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,063
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,890
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 136
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 79
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 143
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,294
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 104
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 755

 
  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: 280)
Print this item

  Sequence to sequence AI advice
Posted by: tomharvey - Apr-24-2022, 05:06 AM - Forum: Data Science - No Replies

Hello,

I am looking for a field of AI to explore that will be able to help me generate a sequence of numbers from existing sequences of numbers. F..... More

Print this item

  Creating a TG crypto Bot_ problem when trying to with bot.polling
Posted by: p1ner0 - Apr-24-2022, 04:27 AM - Forum: General Coding Help - Replies (1)

Hi there, I have a problem, I have made a telegram bot, which gets input from telgegram(namely the crypto coin name) and then using the CoinGecko API,..... More

Print this item

  Simple python programs for beginners
Posted by: Talbot9 - Apr-23-2022, 06:33 PM - Forum: Tutorial Requests and Submissions - Replies (1)

Hello

Firstly apologies but I'm a relatively newbie to python and I hsve mastered making a basic digital clock with python and that's about as far ..... More

Print this item

  Error when running a matplot lib example
Posted by: aurelius_nero - Apr-23-2022, 04:41 PM - Forum: General Coding Help - Replies (3)

Hi all,
New forum user here.
When I run this code from the Matplotlib examples, I get the following error:
[error]Traceback (most recent call last..... More

Print this item

  I need help!!!!
Posted by: Nimesh_SDP - Apr-23-2022, 04:00 PM - Forum: Homework - Replies (3)

I need to write a program to acquire, extract and compare the price from these two suppliers, for a given product.

There are two online supermarket..... More

Print this item

  How to quantize a 4 dimensional array?
Posted by: PythonNPC - Apr-23-2022, 03:33 PM - Forum: General Coding Help - Replies (2)

Hello,

I am new to NumPy.

Lets say I have an array:

nparray = np.array(output2)
print(output2.shape)
Output:
[code](1, ..... More

Print this item

  Folium: Conflict with Font Awesome Kit
Posted by: jgomes_eu - Apr-23-2022, 03:18 PM - Forum: General Coding Help - No Replies

Hi everyone,
I've run into a problem with a folium map inside a Dash app.
Here's my code
[python]
import pandas as pd
import branca
import f..... More

Print this item

  semantics of comma inside array brackets
Posted by: usercat123 - Apr-23-2022, 08:09 AM - Forum: Data Science - Replies (2)

hi,

I am trying to understand a piece of code, namely
[python]
import matplotlib.pyplot as plt
import numpy as np
expdat = np.genfromtxt(fname..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to Integrate External... 7 hours ago finallen321 noisefloor General Codin...
  Calling python from anoth... 10 hours ago eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
Most views
  The best Prog... 580359
  Tutorial Requ... 519045
  Web Scraping ... 442771
  Newbie with P... 386952
  New Users Int... 386235
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
atalieyandext4063 Yesterday
finallen321 Yesterday
DTECHSYSTEM Yesterday
zashleyfracesz3221 Yesterday
itx_sumeet Yesterday

User Panel Messages

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