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,257
» Latest member: Bamboo
» Forum threads: 38,782
» Forum posts: 175,835

Full Statistics

Online Users
There are currently 42 online users.
» 0 Member(s) | 40 Guest(s)
Google, Bing

Latest Threads
Please guide me to comple...
Forum: General Coding Help
Last Post: pbkurd
9 minutes ago
» Replies: 2
» Views: 78
[solved] re.split issue
Forum: General Coding Help
Last Post: paul18fr
4 hours ago
» Replies: 8
» Views: 151
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 186
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 358
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 118
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 245
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 396
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 151
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,643
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 250

 
  time.clock not functioning
Posted by: Oldman45 - Apr-06-2021, 10:33 AM - Forum: General Coding Help - Replies (3)

I am using the following coding, from a text book, to compare two methods of measuring execution time for coding but time.clock is not recognised. I ..... More

Print this item

  blank graph with matplotlib from a csv file / data type issue
Posted by: arsentievalex - Apr-06-2021, 10:08 AM - Forum: General Coding Help - No Replies

Hi All. I'm new to Python and hoping to get some help here. I'm trying to create some simple bar/line graphs from a csv file, however, it gives me an ..... More

Print this item

  Calculate the value which has the similar name in the header using - XLSWRITER using
Posted by: rsd - Apr-06-2021, 06:14 AM - Forum: General Coding Help - Replies (1)

Hi All,
I need to calculate the value which has the similar name in the header. Here i have Bill and Non Bill fields in the column. I n..... More

Print this item

  implementing the Linux touch command
Posted by: Skaperen - Apr-06-2021, 12:06 AM - Forum: News and Discussions - No Replies

how can i implement the Linux (or POSIX) touch command, in particular the -a or -m option which specifies updating the access tim..... More

Print this item

  Replacing text in xml
Posted by: ateestructural - Apr-05-2021, 11:50 PM - Forum: General Coding Help - Replies (4)

I have this code but the text is not replaced in the file titled: file_name (although as a python string the replacement is correct but I expected to ..... More

Print this item

  wx.DC.CalcBoundingBox
Posted by: menator01 - Apr-05-2021, 11:24 PM - Forum: GUI - No Replies

Could someone give me an example of wx.DC.CalcBoundingBox. In my project creating the die (square), I would like to set up a functions/methods to plac..... More

Print this item

  Python cookies
Posted by: vj78 - Apr-05-2021, 10:50 PM - Forum: Web Scraping & Web Development - Replies (2)

I am trying to set cookies and retrieve them.

How to get and set the cookies? in python.

Print this item

Music XML File - cannot find the tag
Posted by: ateestructural - Apr-05-2021, 09:24 PM - Forum: General Coding Help - Replies (1)

I have the attached xml file. I want to find the tag: inputDataLocation in the attached xml and want to edit the VALUE related text

I tried several..... More

Print this item

  I need assistance with getting sympy to work
Posted by: alex_0 - Apr-05-2021, 08:33 PM - Forum: General Coding Help - Replies (1)

I am trying to get sympy to work and am having trouble with it.

I have used pip install sympy to get it onto my computer.

I tried to make a simp..... More

Print this item

  Unexpected parameter verbose
Posted by: Led_Zeppelin - Apr-05-2021, 08:28 PM - Forum: General Coding Help - Replies (5)

The following simple 13 lines python 3.6.3 code gives me an error as shown. I am working in Windows 10-home. It is on the 8th line.


[python]
fr..... More

Print this item

  Solving for zeros of an equation!
Posted by: fmitchell17 - Apr-05-2021, 07:49 PM - Forum: General Coding Help - No Replies

Hello all,

Looking for some advice on how to solve for the zeros of a particular variable in the equation below. I am new to Python, coming from MA..... More

Print this item

  ERROR: importing desired module
Posted by: mbgamer28 - Apr-05-2021, 07:46 PM - Forum: General Coding Help - No Replies

Hello Folks! I have written code to fetch secrets from Azure KeyVault (no knowledge of azure is required for this issue Smile ). For this ..... More

Print this item

  how to call an object in another function in Maya
Posted by: bstout - Apr-05-2021, 07:12 PM - Forum: General Coding Help - No Replies

I have a UI to set the color of the controls of the autorig. When I connect the button to a function I run into a problem. The called function can't f..... More

Print this item

  Selenium XPATH
Posted by: jimsxxl - Apr-05-2021, 05:23 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi guys,
Im a beginner when it comes to Python, and wanted to try code a scraper.
Im trying to scrape betfair.com for Team-names and Odds.

I succ..... More

Print this item

  Putting code into a function breaks its functionality, though the code is identical!
Posted by: PCesarano - Apr-05-2021, 04:50 PM - Forum: General Coding Help - Replies (1)

Hello, I am perplexed by this problem. I have a chunk of code which appears to work in the body of my Python script, but once I stick the same code in..... More

Print this item

  How to get a URL from python 'webbrowser'?
Posted by: dheeraj - Apr-05-2021, 03:55 PM - Forum: General Coding Help - No Replies

I'm using 'webbrowser' for opening multiple tabs in Chrome/Firefox.
For example:
[python]webbrowser.get("open -a /Applications/Firefox.app %s").open..... More

Print this item

  JS Buffer.from VS struct.pack
Posted by: DreamingInsanity - Apr-05-2021, 02:58 PM - Forum: General Coding Help - Replies (3)

I'm trying to port over a little of bit of a JS library so I can work with it in Python. It allows for you to create Celeste (the game) maps through c..... More

Print this item

  Pandas filters
Posted by: SAF - Apr-05-2021, 07:00 AM - Forum: General Coding Help - No Replies

Hi

i have two columns ID and description.

If the ID is blank, and the description contains as P2.... then ID should come as P2 in place of balnk.

I..... More

Print this item

  Docker-compose on Pycharm - Connection refused
Posted by: rstambach - Apr-05-2021, 04:48 AM - Forum: General Coding Help - Replies (3)

This is the first time I've used Pycharm with docker-compose and I have this issue. I have a docker-compose.yml that works fine from bash execution bu..... More

Print this item

  making : optional
Posted by: Skaperen - Apr-04-2021, 10:45 PM - Forum: News and Discussions - Replies (3)

what would be an example of a situation where code can be valid without : and valid with : and have different semantics? or can a language like Pytho..... More

Print this item

Sad web scraping HTML - :(
Posted by: Kingoman - Apr-04-2021, 10:14 PM - Forum: Web Scraping & Web Development - Replies (22)

Hi,

I'm in need of some help to 'scrap' html code from multiple sites instead of manually go to 'view source'
- All I have found regarding this on..... More

Print this item

  How to make python run other file?
Posted by: Adrian_L - Apr-04-2021, 08:22 PM - Forum: General Coding Help - Replies (4)

How do I make python run another file from the local disk?

Print this item

  Unable to convert request response.
Posted by: johnboy1974 - Apr-04-2021, 08:17 PM - Forum: General Coding Help - Replies (4)

Hi,

I'm trying to convert a response which I think is in Unicode? I am using the requests library to get data from an API. I am running the followi..... More

Print this item

  How to fix the error?
Posted by: Adrian_L - Apr-04-2021, 07:26 PM - Forum: General Coding Help - Replies (2)

My current code: [python]import time
import random
import os

ValidBootFiles = ["XC_DOS", "shell"]

for x in range(100):
bootfrom = input("..... More

Print this item

  Matplotlib
Posted by: julienhofmann - Apr-04-2021, 07:07 PM - Forum: Homework - Replies (4)

Hi everyone,


I've created a code to run a 2D mapping using matplotlib from a .csv file.
I'd like to set the maximum color (red) of the scale as ..... More

Print this item

Question Help with Python - Palindromes
Posted by: SantiagoPB - Apr-04-2021, 02:05 PM - Forum: General Coding Help - Replies (4)

Hello everyone,

I have a problem with getting the result of my program Confused .

This is a task on palindromes.

STATEMENT
[i]Wr..... More

Print this item

  Displaying list correspond to the column number
Posted by: danlopek14q - Apr-04-2021, 10:02 AM - Forum: Homework - Replies (9)

Hello guys

I have a problem finding a solution for the lists.
I have a function all_list which takes two parameters (listas, column[]). Inside of the..... More

Print this item

  Matplotlib scale
Posted by: julienhofmann - Apr-04-2021, 08:50 AM - Forum: General Coding Help - No Replies

Hi everyone,


I've created a code to run a 2D mapping using matplotlib from a .csv file.
I've tried to set the maximum color (red) of the scale ..... More

Print this item

Question Palindromes - Python Help
Posted by: SantiagoPB - Apr-04-2021, 08:31 AM - Forum: Homework - Replies (5)

Hello everyone Big Grin ,

I have a problem with my code.

I must write a program that reads a string and from it obtain all the palindrome..... More

Print this item

  instance methods invokation
Posted by: mim - Apr-04-2021, 06:26 AM - Forum: General Coding Help - Replies (3)

does objects have its methods or invoke them from superclass in python?
for example:
[python]
class tst():
def __init__(self,name,family):
..... More

Print this item

  New to Flask
Posted by: vj78 - Apr-04-2021, 03:27 AM - Forum: Web Scraping & Web Development - Replies (1)

The code below displays hello

@app.route('/')
@app.route('/Login')
def Login():
    return "hello"
[b]The belo..... More

Print this item

  Error on open of file created with tempfile.TemporaryDirectory()
Posted by: Brian177 - Apr-04-2021, 02:49 AM - Forum: General Coding Help - Replies (4)

The below code gives an error on the line: tfp = open(path, "w+t")
Anyone know why?

[error]
Exception has occurred: NotADirectoryError
[WinError..... More

Print this item

  pylab, labeling points on a graph.
Posted by: Dasiey12 - Apr-04-2021, 01:08 AM - Forum: General Coding Help - No Replies

[python]def abs(absc, absx, c):
# find zeros of the function
zero1 = (absc + absx)
if zero1<0:
zero1 = (zero1*-1)
input1=..... More

Print this item

  I need help with a script that reads and searches through an api.
Posted by: phage - Apr-03-2021, 09:19 PM - Forum: Web Scraping & Web Development - Replies (3)

New coder here who needs help with api scanning project. I've been racking my brain with https://pastebin.com/Nk4yGAzz for four months, could use some..... More

Print this item

  Importing text file into excel spreadsheet with formatting
Posted by: david_dsmn - Apr-03-2021, 08:26 PM - Forum: General Coding Help - Replies (1)

Hi, I have many text files with similar format as below.

[output]
Apples: 1596.403 +- 10.651
Oranges: 10.16..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Please guide me to comple... 9 minutes ago pbkurd pbkurd General Codin...
  [solved] re.split issue 4 hours ago paul18fr paul18fr General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578942
  Tutorial Requ... 510334
  Web Scraping ... 441963
  Newbie with P... 385981
  New Users Int... 376935
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+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Bamboo Today
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday

User Panel Messages

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