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,934
» Latest member: XenonBlack
» Forum threads: 38,723
» Forum posts: 175,504

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 41 Guest(s)
Bing, Google, Applebot, AOL, Mojeek

Latest Threads
ShanePulse
Forum: General Coding Help
Last Post: OLanePulse
33 minutes ago
» Replies: 0
» Views: 8
Too much space between gr...
Forum: GUI
Last Post: RonR
1 hour ago
» Replies: 2
» Views: 828
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
4 hours ago
» Replies: 0
» Views: 36
Expert Guidance Made Easy...
Forum: General Coding Help
Last Post: Alex12
5 hours ago
» Replies: 0
» Views: 42
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
8 hours ago
» Replies: 1
» Views: 351
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,412
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,498
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 347
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 111
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,861

 
Question Why isn't getops handling all parameters?
Posted by: Calab - Feb-03-2023, 01:17 PM - Forum: General Coding Help - Replies (7)

For some reason, getops is only seeing 9 parameter entries of a bash command line that has 12 parameter entries. I can't figure out why. None of the p..... More

Print this item

  Flask/non-flask database sharing
Posted by: MorganSamage - Feb-03-2023, 11:46 AM - Forum: Web Scraping & Web Development - Replies (2)

Firstly, I have very little experience with python, so any constructive feedback on what I have done/should do with regards to the following issue tha..... More

Print this item

  syntax error question - string
Posted by: mgallotti - Feb-03-2023, 12:02 AM - Forum: General Coding Help - Replies (5)

Hi
When I try to include strings(Htitle1) inside some HTML that I want to send in an email, I get this error: TypeError: set_text_content() got multi..... More

Print this item

  problem of converting Matlab code to python
Posted by: DongyanZ - Feb-02-2023, 04:12 PM - Forum: Data Science - Replies (2)

Hi my friend,

I am using Jupyter Notebook to handle my data. Now I have a csv file with 6 columns and 32768 rows, but I only need the 2nd, 5th and ..... More

Print this item

  Converting several Markdown files into DOCX using Pandoc
Posted by: Akule8 - Feb-02-2023, 02:54 PM - Forum: General Coding Help - No Replies

Hey Guys,
I have a folder called Project, this is the structure:

Project:

img
docs
README

The README is written in Markdown and looks like..... More

Print this item

  Error using pandas_datareader
Posted by: nafshar - Feb-02-2023, 01:28 PM - Forum: Data Science - Replies (1)

I am trying to read stock data using panda's DataReader and getting an error that I am not sure I understand.
The data source : 'yahoo' is found at t..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  ShanePulse 33 minutes ago OLanePulse OLanePulse General Codin...
  [Tkinter] Too much space ... 1 hour ago RonR RonR GUI
  How Reliable Is Assignmen... 4 hours ago tobey12 tobey12 News and Disc...
  Expert Guidance Made Easy... 5 hours ago Alex12 Alex12 General Codin...
  Another app idea - intera... 8 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
Most views
  The best Prog... 575804
  Tutorial Requ... 497060
  Web Scraping ... 439818
  Newbie with P... 383512
  New Users Int... 365345
Most reputation
buran 581
snippsat 508
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+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
XenonBlack Today
tobey12 Today
Alex12 Today
Lenowell Today
luisshulez6883 Yesterday

User Panel Messages

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