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,536
» Latest member: lilianaortegga
» Forum threads: 38,664
» Forum posts: 175,196

Full Statistics

Online Users
There are currently 28 online users.
» 1 Member(s) | 23 Guest(s)
Google, Bing, Baidu, Yandex, kshahzad1985

Latest Threads
"iBolt Cyber Hacker Recov...
Forum: Bar
Last Post: lilianaortegga
2 hours ago
» Replies: 0
» Views: 12
HIRE DIGITAL FORENSIC EXP...
Forum: Bar
Last Post: Saragonzales
4 hours ago
» Replies: 0
» Views: 20
Custom Sorting List of Di...
Forum: Homework
Last Post: deanhystad
4 hours ago
» Replies: 2
» Views: 174
Unable to define function...
Forum: Homework
Last Post: deanhystad
4 hours ago
» Replies: 1
» Views: 40
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 10:14 AM
» Replies: 6
» Views: 662
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
Yesterday, 09:36 AM
» Replies: 3
» Views: 158
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 01:32 AM
» Replies: 1
» Views: 112
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
Jul-13-2025, 11:23 AM
» Replies: 7
» Views: 478
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Jul-12-2025, 04:00 PM
» Replies: 3
» Views: 269
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Jul-12-2025, 02:41 AM
» Replies: 5
» Views: 253

 
  Can't modify a simple matrix
Posted by: Lewkiy - Feb-01-2023, 11:33 PM - Forum: General Coding Help - Replies (3)

I'm a beginner in python and I can't understand why this doesn't work like seriously, i really tried. You can see the result of the function on the le..... More


Attached Files

Thumbnail(s)
       
Print this item

Question Is there a python program for automating this invoicing workflow?
Posted by: PG_Archipelago - Feb-01-2023, 10:54 PM - Forum: General Coding Help - Replies (3)

Assuming a proper database management system (e.g., BigQuery) is used to store input data in Step 1, are there any Python programs out there for autom..... More

Print this item

  Master Python Programming, by Abhishek Singh
Posted by: Dionysis - Feb-01-2023, 07:39 PM - Forum: News and Discussions - Replies (4)

Hello to all!
I am more than excited to begin my journey in Python programming! I love Monty Python too!
After much research, I bought Singh's introdu..... More

Print this item

  shutil.move make data corrupt
Posted by: kucingkembar - Feb-01-2023, 01:30 PM - Forum: General Coding Help - No Replies

hi sorry for my bad English,
i have this code:
[python]
SaveAs = "new folder name that contains illegal character !@#$%^&*"
..... More

Print this item

  Printing effect sizes for variables in an anova
Posted by: eyavuz21 - Feb-01-2023, 10:29 AM - Forum: General Coding Help - Replies (2)

Hey all,

I have the following code.

[python]resultmodeldistancevariation2sleep = smf.ols(formula='weighteddistance ~ age + C(gender) + C(highest_ed..... More

Print this item

  Send email with smtp without using Mimetext
Posted by: mgallotti - Feb-01-2023, 04:43 AM - Forum: General Coding Help - No Replies

Hi,
I haven't been able to get a script working that sends email using Mimetext to work on a Windows server.
The email body contains fields inside a..... More

Print this item

  Getting last line of each line occurrence in a file
Posted by: tester_V - Jan-31-2023, 08:57 PM - Forum: General Coding Help - Replies (1)

Greetings!
I hope I'm not overstaying my welcome here...
Anyway, I’m looking for a set of lines from a file.
See the example of a file below, the l..... More

Print this item

  add mqtt feature to existing code
Posted by: Positron79 - Jan-31-2023, 05:56 PM - Forum: General Coding Help - No Replies

Good day, all

I'm currently using this code and works very well.

https://github.com/BrucesHobbies/radonMaster

It has local data logging to a ..... More

Print this item

Sad SSL Error when using pip
Posted by: rf1976 - Jan-31-2023, 04:09 PM - Forum: General Coding Help - Replies (7)

I am new in IT and I am a Linux Mint user.

I am facing an issue when I try to install libraries using pip.

If, in Terminal, I type:

pip3 install p..... More

Print this item

  Split pdf in pypdf based upon file regex
Posted by: standenman - Jan-31-2023, 04:08 PM - Forum: General Coding Help - Replies (1)

I am trying to split a pdf doc that is a set of medical records based upon the date of treatment. So in this pdf of records we have "Visit Date: ##/#..... More

Print this item

  Flask and SQLAlchemy question: Database is being created but tables aren't adding
Posted by: pythonpaul32 - Jan-31-2023, 03:13 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi,

I am trying to make an e-commerce app using Flask and SQLAlchemy. Whenever I create the databases in my program, the database is getting created,..... More

Print this item

Video Charge Shot
Posted by: KennedyRichard - Jan-31-2023, 02:49 PM - Forum: Code sharing - No Replies



Just a tiny sneak peek into a game I'm working on. Early stages of development...... More

Print this item

  function return boolean based on GPIO pin reading
Posted by: caslor - Jan-31-2023, 10:16 AM - Forum: General Coding Help - Replies (2)

Hi, i am not sure how to express it right but i wonder if there is a way to make a function to return a boolean value based of the Gpio readings

..... More

Print this item

  Multiply and Addition in the same loop statement with logic.
Posted by: joelraj - Jan-31-2023, 09:52 AM - Forum: General Coding Help - Replies (2)

Hi Python Community,

Greetings to you all !

After the if statement is passed through Reven and Rodd have to take two alternative indexes: one h..... More

Print this item

  Expand the range of a NumPy array?
Posted by: PythonNPC - Jan-31-2023, 02:41 AM - Forum: General Coding Help - No Replies

Hello everyone,

I have to agree that I am not great at coding and math but this forum has helped me a lot before and come seeking your help once ag..... More

Print this item

Lightbulb traceback and multi-line statement
Posted by: Skaperen - Jan-31-2023, 12:21 AM - Forum: News and Discussions - No Replies

IMHO a traceback should show more (within reason) of statements that are spread over multiple lines, and give the line numbers (first to almost last),..... More

Print this item

  I am looking for a FuzzyARTMAP library in Python language
Posted by: Cooketaker - Jan-30-2023, 07:14 PM - Forum: Data Science - Replies (2)

Good evening friends, I am looking for a python library of Fuzzy ARTMAP(Adadptive Resonance Theory),but the ones I find don't work well or I don't kno..... More

Print this item

  class Update input (Gpio pin raspberry pi)
Posted by: caslor - Jan-30-2023, 04:06 PM - Forum: General Coding Help - Replies (2)

Hi (Newbie here self taught first in C - Arduino and now try to learn Python but with my mind thinking like programing C and want to change that to py..... More

Print this item

  K Means Clustering
Posted by: antouanet - Jan-30-2023, 01:18 PM - Forum: Data Science - No Replies

Hello,

I am trying to study the changes in consumers' buying behavior before the pandemic and during the pandemic.
I have a dataset with sales of..... More

Print this item

  Create new dataframe from old dataframe
Posted by: arvin - Jan-30-2023, 11:09 AM - Forum: General Coding Help - Replies (3)

I have a pandas dataframe that has 2 columns
[Image: input.png]

,And I want to create a new dataframe with column ..... More

Print this item

  Images in a db
Posted by: DPaul - Jan-30-2023, 07:39 AM - Forum: Bar - No Replies

Hi,
I have asked this question a few months ago and the answer was:
"We see no reason to store images in a db, use a file pointer system"
Thiat is wha..... More

Print this item

  Print variable without '' and spaces
Posted by: arnonim - Jan-30-2023, 07:34 AM - Forum: General Coding Help - Replies (1)

Hello all,
could you help me with below question:

x = int(input("Enter the number:"))
a = str(([random.choice("ABCD" for _ in range(x)]))
var1 ..... More

Print this item

  Replace based on values in a file
Posted by: WJSwan - Jan-30-2023, 05:42 AM - Forum: Homework - Replies (2)

I have a file containing records with 4 values, eg:
1,Genesis,Gen,Gen
2,Eksodus,Eks,Exo
3,Levitikus,Lev,Lev
4,Numeri,Num,Num
5,Deuteronomium,Deut..... More

Print this item

  That compression method is not supported
Posted by: tester_V - Jan-30-2023, 02:37 AM - Forum: General Coding Help - Replies (9)

Greetings!
I used this snippet for a while but yesterday the script crashed...
with the error:
'That compression method is not supported'
I'm expe..... More

Print this item

  What is the cause of this error?
Posted by: Led_Zeppelin - Jan-29-2023, 08:13 PM - Forum: General Coding Help - Replies (3)

The following code generates an error as shown:

[python]
# random search logistic regression model on the sonar dataset
from scipy.stats import l..... More


Attached Files

Thumbnail(s)
   
Print this item

Question Inserting Numerical Value to the Element in Optionlist and Printing it into Entry
Posted by: drbilgehanbakirhan - Jan-29-2023, 06:17 PM - Forum: General Coding Help - Replies (1)

Hello. I'm just learning Python. I have confronted a problem in my study.

I have an optionlist for building types (Residential, Museum, Hospital, H..... More

Print this item

  Why doesn't this code work? What is wrong with path?
Posted by: Melcu54 - Jan-29-2023, 09:13 AM - Forum: General Coding Help - Replies (7)

hello, I have an error on the code below. Ths code converts all txt files into docx, from the same folder. But I have an error on path, I try many com..... More

Print this item

  Checking if a string contains all or any elements of a list
Posted by: k1llcod3 - Jan-29-2023, 02:20 AM - Forum: General Coding Help - Replies (1)

so i have some keywords in a list and i want to check if a string contains any or all of those keywords. E.g
[python]
teststring = 'this is a test s..... More

Print this item

  Use a class type in it
Posted by: MathisDELAGE - Jan-28-2023, 10:03 PM - Forum: General Coding Help - Replies (2)

Hello,
I want to use a description for my parameter of my class method and that give this
[python]
class Player:
def __init__(self, name: str) -> ..... More

Print this item

  TreeView column headers
Posted by: TWB - Jan-28-2023, 09:18 PM - Forum: General Coding Help - Replies (2)

Hello all
I have posted a code section of a larger program where im trying to populate a a treeview with 2 columns and inset 2 values.
My issue is t..... More

Print this item

  Converting a json file to a dataframe with rows and columns
Posted by: eyavuz21 - Jan-28-2023, 08:13 PM - Forum: General Coding Help - Replies (13)

Hey all,

I am trying to convert a json file into a dataframe.

[python]import pandas as pd
import os
from pandas.io.json import json_..... More

Print this item

  fixing error TypeError: 'float' object is not subscriptable
Posted by: programmingirl - Jan-28-2023, 07:47 PM - Forum: Homework - Replies (1)

Hi there. I am working on a project on loan defaults and I am trying to convert the term variable into 36 or 60 integer numeric data type using .apply..... More

Print this item

  help how to get size of pandas dataframe into MB\GB
Posted by: mg24 - Jan-28-2023, 09:13 AM - Forum: General Coding Help - Replies (1)

Hi Team,

I want to convert memory usage of DataFrame into MB OR GB. in a Pythonic way.

below value I want to get size 19647323

[python]
import pa..... More

Print this item

  [SOLVED] [sqilte3] Check if column not empty?
Posted by: Winfried - Jan-28-2023, 03:44 AM - Forum: General Coding Help - Replies (5)

Hello,

Some rows might have an empty column.

How can I check it's filled with data?

[python]file = open("output.txt", 'at',encoding='utf-8')..... More

Print this item

  Issues with Anaconda installation...
Posted by: bytecrunch - Jan-27-2023, 11:29 PM - Forum: Data Science - Replies (2)

Hello,

I have downloaded Anaconda on a new Windows 10 machine. The installer did everything without errors BUT I still don’t see Anaconda in the St..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  "iBolt Cyber Hacker Recov... 2 hours ago lilianaortegga lilianaortegga Bar
  HIRE DIGITAL FORENSIC EXP... 4 hours ago Saragonzales Saragonzales Bar
  Custom Sorting List of Di... 4 hours ago aryasinner deanhystad Homework
  Unable to define function... 4 hours ago gmonroe deanhystad Homework
  RemoTe server operation w... Yesterday, 10:14 mario17 snippsat General Codin...
  Qt Event Filtering Yesterday, 09:36 deanhystad deanhystad GUI
  processing nested json da... Yesterday, 01:32 Kumo_Koloo Pedroski55 Web Scraping ...
  Convert .pdf to .txt 07-13, 11:23 vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... 07-12, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... 07-12, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
Most views
  The best Prog... 572688
  Tutorial Requ... 485720
  Web Scraping ... 437144
  Newbie with P... 380080
  Thread remain... 351375
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12073
buran 8174
snippsat 7352
deanhystad 6857
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lilianaortegga Yesterday
Saragonzales Yesterday
homerpalmer Yesterday
aihancaiji31 Yesterday
gmonroe Yesterday

User Panel Messages

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