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,472
» Latest member: olips784
» Forum threads: 38,579
» Forum posts: 174,810

Full Statistics

Online Users
There are currently 698 online users.
» 0 Member(s) | 695 Guest(s)
Bing, Google, Yandex

Latest Threads
Text frame
Forum: Homework
Last Post: Pedroski55
3 hours ago
» Replies: 2
» Views: 329
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
5 hours ago
» Replies: 0
» Views: 77
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 236
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 184
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,356
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 135
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 440
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,252
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 385
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 471

 
  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

  splitting a Dataframe Column in two parts
Posted by: nafshar - Jan-27-2023, 07:17 PM - Forum: General Coding Help - Replies (2)

I have a dataframe column for emal addresses and I am trying to find the count of the top domains.
I am sppliting the email using the '@" as the sep..... More

Print this item

  How to predict Total Hours needed with List as Input?
Posted by: caninan - Jan-27-2023, 04:20 PM - Forum: Data Science - No Replies

I am struggling with the problem I am facing: I have a dataset of different products (Cars) that have certain Work Orders open at a given time. I know..... More


Attached Files

Thumbnail(s)
   
Print this item

  [SOLVED] Epoch timestamp without milliseconds?
Posted by: Winfried - Jan-27-2023, 03:36 PM - Forum: General Coding Help - Replies (5)

Hello,

What's a good way to get an Epoch timestamp without the milliseconds?

[python]for row in cur.execute("SELECT id,created,title FROM conten..... More

Print this item

  How to auto align x-axis label
Posted by: SamLiu - Jan-27-2023, 02:15 PM - Forum: General Coding Help - Replies (2)

Hi all,

A matplotlib plt.bar demo create a chart as snapshots, how to set up x-axis label no shadow,thanks!!

[python]
import matplotlib.pyplot ..... More

Print this item

  Global variables or local accessible
Posted by: caslor - Jan-27-2023, 11:58 AM - Forum: General Coding Help - Replies (4)

Hi to all, allow me a small intro : i am self taught in programing , first learn to program in "c" (arduino) and later playing with a raspberry pi boa..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Text frame 3 hours ago dnabtuh Pedroski55 Homework
  Python automation: Sendin... 5 hours ago olips784 olips784 General Codin...
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
Most views
  The best Prog... 565206
  Tutorial Requ... 455892
  Web Scraping ... 430165
  Newbie with P... 366180
  Thread remain... 338459
Most reputation
buran 580
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+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
olips784 Today
iloveimg3 Yesterday
ishaD Yesterday
fitobar43 Yesterday
AymanNassar 05-16

User Panel Messages

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