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,298
» Latest member: Divyakrishnan071
» Forum threads: 38,795
» Forum posts: 175,888

Full Statistics

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

Latest Threads
My regex function is not ...
Forum: General Coding Help
Last Post: bowlofred
2 hours ago
» Replies: 2
» Views: 90
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
3 hours ago
» Replies: 6
» Views: 3,172
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:51 AM
» Replies: 1
» Views: 66
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 237
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 125
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 89
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,521
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 171
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 80
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,143

 
  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

  Beginner Question - Esaping the Escape Character correctly?
Posted by: Bramen - Aug-26-2019, 04:34 PM - Forum: General Coding Help - Replies (4)

I am working on some basic programming homework, a calculator. The code is below.

I would like for the user to be able to input / or \ for division..... More

Print this item

  How to drop column in pandas
Posted by: SriMekala - Aug-26-2019, 02:10 PM - Forum: Data Science - Replies (3)

Hi,
I have below DataFrame,

[python]Group Category Subject AC1 AC2 AC3 BM1 BM2 NJ1 NJ2 NJ3
Va Vb ..... More

Print this item

  find nearest number
Posted by: d3fi - Aug-26-2019, 01:22 PM - Forum: General Coding Help - Replies (7)

so first here is my code.

[python] elif medicin in ("adrenalin", "ad"):
vaegt = int(input("Hvad vejer patienten? ")) #what does the pa..... More

Print this item

  Splitting String into 2d list
Posted by: cclark135 - Aug-26-2019, 12:40 PM - Forum: General Coding Help - Replies (2)

I have a sample list of data as follows

'762-69-7639,Aime,Gentzsch,12ALT,ENG LIT,MUSIC,PSYCHOL
359-53-2130,Marrick,Spinelli,12POL,MATHS,COMPSCI,PH..... More

Print this item

  Getting error when I run code more than two times
Posted by: Clnprof - Aug-26-2019, 11:45 AM - Forum: News and Discussions - Replies (5)

I'm trying to scrape several web sites with a code. I could scrape 2 sites but now code doesn't work. It show me "NameError: name 'inf_rest_name' is n..... More

Print this item

  lambda layer size issue
Posted by: lambdabeginer - Aug-26-2019, 11:31 AM - Forum: General Coding Help - Replies (1)

Hi all,
I was working with webscraping by Goose and beautiful soup.
Extract the content and upload the urls to dynamodb and the content to Elasticse..... More

Print this item

  Vectorizing using numpy
Posted by: pythonhelp - Aug-26-2019, 09:03 AM - Forum: General Coding Help - No Replies

I'm relatively new to Python and have the following Python code. This code actually reads every line from a .csv file and does some actions.

I have..... More

Print this item

  Class defining
Posted by: squillam - Aug-26-2019, 07:00 AM - Forum: Homework - Replies (3)

[Image: 6mS2yzL]

No idea what it means by "call the getname function"

How is this question answerable?

Print this item

  problem in dictionary .get()
Posted by: roseojha - Aug-26-2019, 05:00 AM - Forum: General Coding Help - Replies (5)

Hey.. I was writing the code for calculating protein net charge
when I am providing in input the available keys it is working fine.. However, when ke..... More

Print this item

  problem in loop
Posted by: roseojha - Aug-26-2019, 04:09 AM - Forum: General Coding Help - Replies (3)

Hey guys..
I wanted to have a loop from list of tuples where i can extract name of husband by giving name of wife..
I got that ... but when I am try..... More

Print this item

  how to dynamically add label to pyqt window
Posted by: Joongi - Aug-26-2019, 03:24 AM - Forum: GUI - Replies (3)

I need to be able to dynamically add an object like a label to my window. How do I do that? Here is the code that I have.

[python]
import random
..... More

Print this item

  Is that possible to have a new feature: dynamic return with using function argument
Posted by: kouui - Aug-26-2019, 03:16 AM - Forum: News and Discussions - Replies (2)

In python 3.8, we will have a new syntax := that could assign values to variables as part of larger expression, for example,
[python]
if (n:=len(a..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My regex function is not ... 2 hours ago Moltar1997 bowlofred General Codin...
  best way to learn python 3 hours ago dutch ichsanputr News and Disc...
  silent deployment Python ... Yesterday, 11:51 Bummibaer Larz60+ News and Disc...
  data fetching for indian ... Yesterday, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
Most views
  The best Prog... 579354
  Tutorial Requ... 512299
  Web Scraping ... 442275
  Newbie with P... 386329
  New Users Int... 380144
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+ 12110
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Divyakrishnan071 Today
ichsanputr Today
nicos18 Yesterday
Moltar1997 Yesterday
arthurlouiss Yesterday

User Panel Messages

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