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,986
» Latest member: Tycho_2025
» Forum threads: 38,735
» Forum posts: 175,577

Full Statistics

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

Latest Threads
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
49 minutes ago
» Replies: 1
» Views: 35
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
5 hours ago
» Replies: 3
» Views: 2,519
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
6 hours ago
» Replies: 2
» Views: 68
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
6 hours ago
» Replies: 6
» Views: 180
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,040
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 456
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,086
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,155
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 837
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,109

 
  itertuples, datetime, pandas, groupby, in range
Posted by: karlito - Nov-29-2019, 11:30 AM - Forum: Data Science - No Replies

Hi,

I hope with these additional information someone could find time to help me with this issue.

sample date here --> ..... More

Print this item

  i need to make a command that ...
Posted by: Skaperen - Nov-29-2019, 08:56 AM - Forum: News and Discussions - Replies (5)

i need to make a command that copies stdin to stdout and changes every non-printable character to an escape sequence ... a short one like \n if that c..... More

Print this item

  Code that works on py2 and not in py3
Posted by: rick666 - Nov-29-2019, 08:44 AM - Forum: General Coding Help - Replies (3)

Hi everyone
this is Pedro and this is my first post. I am trying to write a script to make graphs with xmgrace (graphics program) under linux. The..... More

Print this item

  Pandas dataframe to join three tables using like condition among them
Posted by: sandeep_ganga - Nov-29-2019, 08:30 AM - Forum: Data Science - No Replies

Hi Forum,

I am very new to python , trying to compare if joins with dataframes happen faster than processing on database.

Consider three tables ..... More

Print this item

  pyodbc error ('82', '[82] 523 80 (0) (SQLDriverConnect)')
Posted by: paulsuk1982 - Nov-29-2019, 07:40 AM - Forum: General Coding Help - Replies (1)

Hi All,

Getting below error while connecting to database system, code running fine in python 3.4, but throwing SQLDriver Connect error in version 3..... More

Print this item

  use of sys.argv
Posted by: deepakkr3110 - Nov-29-2019, 04:42 AM - Forum: General Coding Help - Replies (3)

hello

what is the use of

if __name__ == "__main__":
  main(sys.argv[1:])
can i pass my file name in this?

Print this item

  Python Coding Help
Posted by: peterchew240 - Nov-29-2019, 02:20 AM - Forum: General Coding Help - Replies (3)

Question: https://app.codility.com/programmers/les...pth/start/

My code:

[python]if len(A) <..... More

Print this item

  Error in the code ->ValueError: could not convert string to float: ' '
Posted by: eagleboom - Nov-29-2019, 12:23 AM - Forum: General Coding Help - Replies (1)

This is the code:
[python]
fichero = open('cuerpos.txt')

doc = fichero.readlines()

for t in range(3, len(doc)):
fila = doc[t].split('\n')..... More

Print this item

  hanged man
Posted by: Gavinosborn - Nov-28-2019, 11:05 PM - Forum: Game Development - Replies (1)

Hi

only been coding for about three days, so please forgive the code. could you copy and paste the below and please explain why i am going mad.

..... More

Print this item

  Filtering with IF Statement
Posted by: Mike2607 - Nov-28-2019, 09:40 PM - Forum: Homework - Replies (10)

I am working on some Homework and the assignment call for us to open a CSV and pull the info out into columns with fixed widths. Afterwards we need t..... More

Print this item

  how virtual and host can communicate?
Posted by: looney99 - Nov-28-2019, 09:08 PM - Forum: Networking - No Replies

How can a python client on my host communicate with a server I created with python on my virtual machine? What do I need to enter the server ip when c..... More

Print this item

  Phyton code to load a comma separated csv file in to a dict and then in to a dB
Posted by: mrsenorchuck - Nov-28-2019, 08:58 PM - Forum: General Coding Help - Replies (2)

Hello,

Hope you are well.

Looking to do the followoing steps:

1. load a comma separated csv file in to a named python dictionary converting n..... More

Print this item

  Make dual vector dot-product more efficient
Posted by: technossomy - Nov-28-2019, 07:35 PM - Forum: General Coding Help - Replies (3)

I have a dot product calculating weighted means, and is applied to two columns in a list with the measured values in column 5 and 6:

[python]# calc..... More

Print this item

  pygame.Surface.fill help
Posted by: Shemira - Nov-28-2019, 05:59 PM - Forum: Game Development - Replies (3)

How do I fill the screen a certain color? I followed an example off of GitHub, but for some reason it is not doing anything. Any advice?
[python]
im..... More

Print this item

  Help with slicing a list
Posted by: FWendeburg - Nov-28-2019, 05:47 PM - Forum: General Coding Help - Replies (3)

Hi, I have this program that ciphers text. The output for "This is a test!" would be:

[output]29255962419664447851729130257545272973129471153616596..... More

Print this item

  How to parallel executing a command using subprocess?
Posted by: larkypython - Nov-28-2019, 03:46 PM - Forum: General Coding Help - No Replies

./PoreDy is the command I want to execute, and jobname and 1001 is the argument it required.
My code is as follows:

[python]
TotalThread=24
Chec..... More

Print this item

  supporting both strings and bytes in functions
Posted by: Skaperen - Nov-28-2019, 03:17 PM - Forum: News and Discussions - No Replies

in all my functions (Skaperens Function Collections) that take strings and return strings, i want to also support bytes and bytearray types, returning..... More

Print this item

  Python+Angular Developer position in Berlin
Posted by: xenia - Nov-28-2019, 02:56 PM - Forum: Jobs - Replies (1)

Feel free to contact me here or by email kseniya.fech@toughbyte.com Also, Telegram is available @xeniafech

[font=Courier New, Courier, monos..... More

Print this item

  Looking for help with a social network on Python
Posted by: GloriaLarsson - Nov-28-2019, 12:26 PM - Forum: Jobs - Replies (3)

Hello everyone!
Hope to find somebody here who'll help me to make my idea true Smile
As far as I know, some giants(Instagram, Uber) used Python..... More

Print this item

  Real Python Course
Posted by: Davy_Jones_XIV - Nov-28-2019, 10:51 AM - Forum: News and Discussions - Replies (4)

Hello,

Just checking has any one taken the real python course and vids? If so, what are your thoughts about the course and vids?

Thanks,
DJXIV

Print this item

  Make Label Text background (default color) transparent using tkinter in python
Posted by: barry76 - Nov-28-2019, 08:55 AM - Forum: GUI - Replies (1)

In reference to the earlier question, I am able to put a background image in the frame but now the major issue is that Label text is displaying with d..... More


Attached Files

Thumbnail(s)
   
Print this item

  hatop issue
Posted by: deepakkr3110 - Nov-28-2019, 05:43 AM - Forum: General Coding Help - Replies (22)

i have a code for hatop in python
[python]#!/usr/bin/python

import socket
import csv
import sys

sys.stdout = open('output.txt','wt')

RECV..... More

Print this item

  opts vs kwargs
Posted by: Skaperen - Nov-28-2019, 05:14 AM - Forum: General Coding Help - Replies (4)

i've seen both used. which name is more preferred in the python community, "opts" or "kwargs"?
[python]
def show_args(*args,**kwargs):
..... More

Print this item

  what module is NoneType in?
Posted by: Skaperen - Nov-28-2019, 04:54 AM - Forum: General Coding Help - Replies (11)

what module is NoneType in? i didn't find it in the library, language, tutorial, or using documentation ..... More

Print this item

  How to make a contour plot in python(matplotli)
Posted by: Ardi - Nov-28-2019, 04:45 AM - Forum: General Coding Help - No Replies

Can some one help me. I want to make a contour plot let's say an example of my data below. I have height data and temperatur data in csv file for 4 da..... More

Print this item

  smtlib send email without logging in
Posted by: codeathoffenmer - Nov-28-2019, 04:05 AM - Forum: General Coding Help - Replies (1)

[python]

import smtplib

from email.mime.text import MIMEText

with open(textfile) as fp:

msg = MIMEText(fp.read())

msg['Subject'] = ..... More

Print this item

  ping with output
Posted by: jacklee26 - Nov-28-2019, 02:19 AM - Forum: General Coding Help - Replies (1)

i have one question related to output file when ping.
if i type in 8.8.8.8 ip address it will export the ping status to the file, but if i used unre..... More

Print this item

  SQL Pivot EAV
Posted by: Quentin - Nov-28-2019, 12:47 AM - Forum: General Coding Help - Replies (2)

I am very new to Python but I have a programming background.
I can read data from SQL query in EAV format (I am stuck with the data).

HOLEID, PROJ..... More

Print this item

  3D animation of sprinkler
Posted by: Marlisevt - Nov-27-2019, 11:56 PM - Forum: Homework - No Replies

Hi,
I am trying to animate/simulate a sprinkler. I tried it in 2D, and got the output I wanted (moving points, iterative creation of points/droplets..... More

Print this item

  Find first letter from a list
Posted by: DariusCG - Nov-27-2019, 10:41 PM - Forum: Homework - Replies (3)

Hello. I have function that finds first letter in all words from list. And I want to count all lower cases. I don't understand why quantity updates on..... More

Print this item

  Import from .py trouble
Posted by: michael1789 - Nov-27-2019, 09:39 PM - Forum: General Coding Help - Replies (4)

I'm trying to split my code into separate modules: sprites.py, setting.py, etc. I'm clearly missing something.

[python]
from settings import *
pr..... More

Print this item

  "SynatxError" Invalid Syntax Help
Posted by: Michael1 - Nov-27-2019, 09:25 PM - Forum: General Coding Help - Replies (2)

Hello, as I am writing my program, i wrote the code

x = 10
if x < 100

from here python automatically gives me the following message

SyntaxEr..... More

Print this item

Question Difference between Python's os.system and Perl's system command
Posted by: Agile741 - Nov-27-2019, 09:00 PM - Forum: General Coding Help - Replies (13)

On Windows 10, I am converting a perl script to python, but I have a problem.

The command in the perl script file is:

[quote]
system ("a dot e..... More

Print this item

  Something is Wrong with my code
Posted by: susmith552 - Nov-27-2019, 08:37 PM - Forum: Homework - Replies (4)

Hello Everyone,

I am new to Python(New to Coding too). I have a task to code a function(dayOfYear) where I need to calculate corresponding day of t..... More

Print this item

  another way to make Python easier
Posted by: Skaperen - Nov-27-2019, 08:18 PM - Forum: News and Discussions - Replies (1)

Python already accepts an extra comma after the last item of a source sequence of expressions, such as forming a list:[python]mylist = [
'foo',
'bar..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  print does not open conso... 49 minutes ago Tycho_2025 Axel_Erfurt General Codin...
  Fred Economic Data API 5 hours ago warrior42 Trickety Web Scraping ...
  create ocr to detect lice... 6 hours ago bimosora noisefloor General Codin...
  Parse Markdown / get the ... 6 hours ago SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... Yesterday, 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...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
Most views
  The best Prog... 577464
  Tutorial Requ... 501232
  Web Scraping ... 441088
  Newbie with P... 385158
  New Users Int... 369826
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Tycho_2025 Today
chikkamagalur Today
Costa Today
bimosora Today
kyleconor797 Yesterday

User Panel Messages

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