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,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,582

Full Statistics

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

Latest Threads
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
6 hours ago
» Replies: 4
» Views: 132
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Today, 08:57 AM
» Replies: 1
» Views: 80
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Yesterday, 03:05 PM
» Replies: 3
» Views: 2,544
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:58 PM
» Replies: 2
» Views: 105
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:56 PM
» Replies: 6
» Views: 231
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,055
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 469
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,101
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,178
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 858

 
  How to copy files from subfolders into one folder
Posted by: silfer - Aug-28-2019, 03:35 PM - Forum: General Coding Help - Replies (3)

Hi Smile
I want to copy tif files contained in subfolders of folder "U:\\collections\\2019_input\\" in one separated output folder "U:\\collecti..... More

Print this item

  using self-developed modules
Posted by: wlp - Aug-28-2019, 03:02 PM - Forum: General Coding Help - Replies (13)

I use Win10 and Python 3.7.4.
I wrote a program that contains a number of inline functions and classes followed by a main program. It imports a modu..... More

Print this item

  How can I make this equation work for t=0?
Posted by: vetlema - Aug-28-2019, 01:45 PM - Forum: Homework - Replies (1)

SO I have this excerice in my python programming course at school.
https://cdn1.imggmi.com/uploads/2019/8/2...58-full.pn..... More

Print this item

  create a new directory if not already exists
Posted by: fioranosnake - Aug-28-2019, 12:39 PM - Forum: General Coding Help - Replies (1)

Hi, I am able to upload files to a directory on my server using the following code :


[python]
for file in file_list:
filename = s..... More

Print this item

  Show real time temperature and storage with Python
Posted by: linkxxx - Aug-28-2019, 10:45 AM - Forum: General Coding Help - Replies (4)

[python]
import serial
import matplotlib.pyplot as plt
from drawnow import *

values = []
plt.ion()
cnt=0

serialArduino = serial.Serial('COM..... More

Print this item

  Linux Script Sudo and "&"
Posted by: s3fac5 - Aug-28-2019, 07:13 AM - Forum: General Coding Help - Replies (14)

Hello everyone in the forums of python
i am new to language
and i have make a small script
which i want to run
by using the followed method from..... More

Print this item

  Creating a Point from coordinate fields in shapefile
Posted by: stixmagiggins - Aug-28-2019, 06:31 AM - Forum: General Coding Help - No Replies

Hi there,
I've been trying to use the Point method from shapely.geometry module to create a point, but using two fields in the shapefile being used...... More

Print this item

  pandas data frame
Posted by: dervast - Aug-28-2019, 06:16 AM - Forum: Data Science - Replies (1)

Hi all, I would like to drop all unique entries based on a specific column value.
I give an example below
[python]
data = [[10105, 1], [10105, 1], ..... More

Print this item

  undefined variables
Posted by: Skaperen - Aug-28-2019, 05:27 AM - Forum: News and Discussions - Replies (18)

i run into this problem a lot. i'm writing a new script that does some major stuff like create lots of processes on my laptop for so purpose or downl..... More

Print this item

  Concatenating strings in cgi
Posted by: Meera2019 - Aug-28-2019, 05:18 AM - Forum: General Coding Help - Replies (2)

I am using Python 3.4. I was working on cgi programming. I created checkboxes and wanted to get those input values as string and post it in single fie..... More

Print this item

  using .replace()
Posted by: Pedroski55 - Aug-28-2019, 05:15 AM - Forum: General Coding Help - Replies (6)

Hi,

I have a small text, just 12 lines. Each line has a word or phrase I want to remove and replace with a dropdownbox containing 10 words. I read..... More

Print this item

  Plotting Raster Data / TIFF files on tkinter canvas
Posted by: RRSCNGP - Aug-28-2019, 04:44 AM - Forum: GUI - No Replies

Hi All....I have a TIFF file which I am trying to plot on the tkinter canvas using the following code:

[python]
import tkinter

from matplotlib...... More

Print this item

  Converting Dataframe in Python from Object to Float
Posted by: marco_ita - Aug-28-2019, 03:59 AM - Forum: Data Science - Replies (11)

Hi there,
i am pretty new to python and i have a dataframe with object types (see image below). Those are supposed to be prices of financial assets, ..... More

Print this item

  Replace last 4 bytes of a timestamp
Posted by: mPlummers - Aug-27-2019, 06:09 PM - Forum: General Coding Help - Replies (18)

Hello!

I have a task which i can't solve, i need some help. I have a epoch timestamp in this form: [python]zero_ts = "2019-08-06T07:37:51.358999967..... More

Print this item

  getting rid of [''] while print
Posted by: zarize - Aug-27-2019, 02:52 PM - Forum: General Coding Help - Replies (14)

hi guys,

i would love to get an assist with getting rid off [''] while i am scraping data - ideally i want to get organized data and i am working on ..... More

Print this item

  Help with AWS Lambda function
Posted by: faws2019 - Aug-27-2019, 01:54 PM - Forum: General Coding Help - No Replies

Hello there,

Thanks in advance for your comments. I am really a beginner in Python and I would really appreciate your help.

I need to create an ..... More

Print this item

  Aug 25th - Sep 1st
Posted by: metulburr - Aug-27-2019, 01:43 PM - Forum: Weekly Top Picks - Replies (1)

I vote for this answer

Print this item

  Sockets and Sendmail
Posted by: taintedsushi - Aug-27-2019, 12:44 PM - Forum: Networking - Replies (2)

I have a socket client program that resends any received data to other connected clients.

I just added a function to send an email when certain dat..... More

Print this item

  Problem with contourf plot and polar projection
Posted by: weihnachtsmo - Aug-27-2019, 11:42 AM - Forum: General Coding Help - No Replies

Hi,
I have a Problem drawing a plot with ploar coordinates.
I have the data in three columns (x,y and intensity). In cartesian coordinates, the data..... More

Print this item

  Copy data from different workbooks into Master sheet with Python
Posted by: Fatman003 - Aug-27-2019, 07:36 AM - Forum: General Coding Help - No Replies

I have to copy data from different workbooks and paste it into a master workbook. All the workbooks including the Master file are located in a folder:..... More

Print this item

  loop printing twice
Posted by: anna - Aug-27-2019, 07:14 AM - Forum: General Coding Help - Replies (1)

Hi All,

below is the my code, however while I am checking List value in another file, post matching its printing twice.

[python]from ciscoconfpa..... More

Print this item

  Python group by and aggregate
Posted by: dervast - Aug-27-2019, 06:57 AM - Forum: General Coding Help - Replies (1)

I have a dataframe with two columns ID and labels. Labels can only be 0 or 1.

The code below generates such a dataframe
[python]
data = [[10105, ..... More

Print this item

  Alias for different parts of a variable
Posted by: mln4python - Aug-27-2019, 06:36 AM - Forum: General Coding Help - Replies (3)

Can I create alias variables for parts of another variable ? For example, I have variables as below.

full_date = '20190827'
yyyy = full_date[0:4] ..... More

Print this item

  bytes not being printed as expected
Posted by: Skaperen - Aug-27-2019, 02:17 AM - Forum: General Coding Help - Replies (2)

i ran into an issue printing a byte string to a file object opened in binary mode and minimized it to this little 4 line script that runs into the sam..... More

Print this item

  how to clean up unstarted processes?
Posted by: Skaperen - Aug-27-2019, 12:31 AM - Forum: General Coding Help - Replies (2)

i have called subprocess.Popen() several times and collected the results. normally i would .start() these processes. suppose i encount..... More

Print this item

  Values into system calls (RPi 4 Raspbian Buster Thonny)
Posted by: hitsware - Aug-26-2019, 11:59 PM - Forum: General Coding Help - Replies (1)

[python]
import os
import time
os.system ("sudo modprobe snd-virmidi")
os.system ("aconnect 20:00 128:00")
b0=str(hex(12*12))[2:4]
b1=str(hex(5*..... More

Print this item

  MaxRetryError while scraping a website multiple times
Posted by: kawasso - Aug-26-2019, 11:21 PM - Forum: Web Scraping & Web Development - Replies (6)

Hi,

I have been trying to retrieve some data from a website. My initial test for retrieving one time data worked as expected, but when I try to get..... More

Print this item

  Video in Gui
Posted by: vscson - Aug-26-2019, 11:20 PM - Forum: GUI - Replies (13)

I am trying to display streamed video in a GUI I created using PAGE. I can’t get the references to the Class to work. In line 82 I have: self.Frame1...... More

Print this item

  Tab character in a string prints 8 spaces
Posted by: hecresper - Aug-26-2019, 10:03 PM - Forum: Homework - Replies (6)

Hi,

I'm starting an online Python class and have been using Python 3 latest with IDLE. I open Python first then open IDLE next to it. Well, I got t..... More

Print this item

  Coloured text in the terminal works in Linux but not Windows
Posted by: Flexico - Aug-26-2019, 09:41 PM - Forum: General Coding Help - Replies (2)

I'm using the syntax "\033[31;40mRed\033[37;40m" for coloring text in the terminal, and it works perfectly on my Linux laptop, but when I installed Py..... More

Print this item

  Number bug, calculation is wrong
Posted by: d3fi - Aug-26-2019, 09:11 PM - Forum: General Coding Help - Replies (2)

so here is my code
[python]
elif im.lower() in ("inh, inhalation, inhala"): # inhalation
barn = (input("Barn eller voksen? ..... More

Print this item

  New to Python, help with saving image from camera
Posted by: tantony - Aug-26-2019, 07:45 PM - Forum: General Coding Help - Replies (2)

I'm new to Python, but I decided to write a program that takes a picture of a person's face and saves it as "who.jpg". When I run this code, I'm able..... More

Print this item

  best way to copy a big binary file
Posted by: Skaperen - Aug-26-2019, 07:17 PM - Forum: News and Discussions - Replies (15)

i have a big file to copy. it could be a binary file. i have the source and target filenames. i might like to also show a progress bar. the file c..... More

Print this item

  local variable referenced before assignment.
Posted by: samvup - Aug-26-2019, 05:59 PM - Forum: General Coding Help - Replies (3)

I have been trying to make m3u files from ustvnow, but every time i test the code with my creds
it keeps saying "local variable 'csrf' referenced bef..... More

Print this item

  Creating csv header from user-input list
Posted by: dvanommen - Aug-26-2019, 05:04 PM - Forum: General Coding Help - Replies (2)

I'm writing a script to read signals from a 32-channel pressure scanner via an Arduino. The basic operation is that the user will input a list definin..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  print does not open conso... 6 hours ago Tycho_2025 Axel_Erfurt General Codin...
  Weird failure in Selenium Today, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API Yesterday, 15:05 warrior42 Trickety Web Scraping ...
  create ocr to detect lice... Yesterday, 13:58 bimosora noisefloor General Codin...
  Parse Markdown / get the ... Yesterday, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577490
  Tutorial Requ... 501425
  Web Scraping ... 441111
  Newbie with P... 385164
  New Users Int... 369955
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Today
maribita Today
AnalystRobert Today
Safariscampoea Today
DataAnalytics021 Today

User Panel Messages

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