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,281
» Latest member: drakhsin
» Forum threads: 38,792
» Forum posts: 175,870

Full Statistics

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

Latest Threads
data fetching for indian ...
Forum: General Coding Help
Last Post: drakhsin
6 hours ago
» Replies: 0
» Views: 30
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Yesterday, 08:30 PM
» Replies: 0
» Views: 37
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:15 AM
» Replies: 4
» Views: 1,468
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 122
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 48
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,040
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,291
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 340
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 177
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 242

 
  Pandas - Dynamic column aggregation based on another column
Posted by: theroadbacktonature - Apr-17-2020, 04:54 PM - Forum: Data Science - No Replies

An algorithm runs daily and generates a file. The file can have dynamic columns in each run.

First run : country,date,exchange_rate,sale_amt,profit..... More

Print this item

  Get values from a split column
Posted by: Pythonito - Apr-17-2020, 04:44 PM - Forum: General Coding Help - Replies (3)

I split a dataframe column..

df['new_col'] = df['col'].str.split('aa', expand=False)

Now how do I get the individual list values in 'new_col'?

Print this item

  Polyfit Error
Posted by: Tobes28 - Apr-17-2020, 03:13 PM - Forum: Data Science - Replies (3)

Hi everyone,

I am writing a bit of code whose purpose, essentially, is to take a data set (density varying with 10 different temperatures) from a C..... More

Print this item

  What is the meaning of mutable data type?
Posted by: qliu - Apr-17-2020, 02:51 PM - Forum: General Coding Help - Replies (3)

Hello everyone, I have one simple question which I can not figure out by myself. Would you please share your opinion and help me walking through this?..... More

Print this item

  Internationalization of applications ?
Posted by: JohnnyCoffee - Apr-17-2020, 02:30 PM - Forum: General Coding Help - Replies (1)

I would like to develop a web application that adapts to the language of the country in which it is used, can someone give me a how-to, do I need to d..... More

Print this item

  Regex excluding
Posted by: ClassicalSoul - Apr-17-2020, 02:13 PM - Forum: General Coding Help - Replies (2)

How could I use regex to match everything not in between hyphens? E.g. re.search(r"<>", "- i don't want this - I do want this")

Edit: This particu..... More

Print this item

  import scalalib package doesn't work
Posted by: manu_brighter - Apr-17-2020, 12:03 PM - Forum: General Coding Help - Replies (2)

Hi Guys

I would like to use the function sharedvars. I've seen many examples of people using it like that: https://python.hotexamples.com/examples/..... More

Print this item

  JSON to CSV
Posted by: baluchen - Apr-17-2020, 11:06 AM - Forum: General Coding Help - Replies (3)

Dear all,

I just started learning Python and got the requirement to format json data into csv. I tried with Pandas and it seems it doesn't work wit..... More

Print this item

  Tic Tac Toe
Posted by: pyzyx3qwerty - Apr-17-2020, 10:44 AM - Forum: Code sharing - Replies (1)

So, I was working on this for a few days, and i was finally able to make a simple tic tac toe game. It's pretty fun and I personally enjoyed making it..... More

Print this item

  Always lowercase entry in tkinter
Posted by: ReturnName - Apr-17-2020, 10:37 AM - Forum: GUI - Replies (8)

Hi, I'd like to have my entry always in lowercase and with only letters allowed. This is the code I've come up with:

[python]def lowercase_letter_e..... More

Print this item

  Copying from windows Clipboard
Posted by: VincentAdey - Apr-17-2020, 08:50 AM - Forum: Data Science - Replies (3)

hello everybody,
I am new to python and currently working on data anylisis wiith pandas. This morning I copied a companies information from the web a..... More

Print this item

  Senior Python Developer, 6h/day, remote
Posted by: agatagasiorowska - Apr-17-2020, 08:09 AM - Forum: Jobs - Replies (1)

Senior Python Developer, 6h/day, remote
Salary in PLN (B2B): 155-195 PLN / h (so 18600-23400 PLN assuming 120h/Month (20 days * 6h workday)
or
Salary..... More

Print this item

  How do you take terminal inputs w/o halting running code?
Posted by: Bhoot - Apr-17-2020, 07:04 AM - Forum: General Coding Help - Replies (3)

Hi,

I have an application which runs indefinitely (a while True loop until a keyboard interrupt stops the program). Now I want to be able to give s..... More

Print this item

  Wireless sensor network TDMA
Posted by: cyborg_8274 - Apr-17-2020, 06:22 AM - Forum: General Coding Help - Replies (1)

Any idea on how I could simulate TDMA (time division multiple access) on a list of nodes that send messages to a single node at given time duration.
..... More

Print this item

  [PyTorch] no CUDA-capable device is detected
Posted by: constantin01 - Apr-17-2020, 05:50 AM - Forum: Data Science - No Replies

I use PyTorch for machine learning. I am doing all this in Google Colab.

[python]
(best_val_loss,
best_sentence_level_model) = train_eval_loop(s..... More

Print this item

  pygame why init() & not __init__()?
Posted by: ryfoa6 - Apr-17-2020, 04:24 AM - Forum: Game Development - Replies (1)

Why does Pygame use init() to initialize all imported modules instead of __init__()?
What's the difference between init() and __init__()?

Print this item

  output while using return instead of print
Posted by: muza - Apr-17-2020, 03:09 AM - Forum: General Coding Help - Replies (2)

when i create a function with return value, it outputs with single quotes example:
[python]def show(string = "my output"):
return string
show()..... More

Print this item

  pygame error in my clicker game
Posted by: CrazyMakes - Apr-17-2020, 01:58 AM - Forum: Game Development - Replies (2)

[python]
# i am trying to follow pep 8 here

# importing stuff

import pygame
import time

# initializing pygame

pygame.init()

# definin..... More

Print this item

  Parsing Oasis Open Document format.
Posted by: Achilles - Apr-17-2020, 01:40 AM - Forum: Web Scraping & Web Development - Replies (2)

I want to write Parser of Oasis document v1.2 for only tags and their explanation. I am parsing tags correctly but I can't parse links belongs to each..... More

Print this item

  Updating a variable within a class
Posted by: MC2020 - Apr-17-2020, 01:20 AM - Forum: GUI - Replies (2)

Hello, I'm really struggling with this concept.

When I initialize my code, on the 'DisplayDict' Page, mydict is set to 'dict1'. When I go to the 'A..... More

Print this item

  How do I install the dom.minidom module?
Posted by: Johno - Apr-16-2020, 10:28 PM - Forum: General Coding Help - Replies (3)

I am using SUSE Linux. I ran this:
sudo pip install py-xml

I am trying to debug a Python program. I ru..... More

Print this item

  How to iterate dict_values data type
Posted by: nisusavi - Apr-16-2020, 10:21 PM - Forum: General Coding Help - Replies (2)

Hi All,
Noob to python here. I am trying to iterate and capture/store the respective ask values for 740.0 and 750.0 in the the example below. So far ..... More

Print this item

  Help needed to troubleshoot.
Posted by: mefev12229 - Apr-16-2020, 09:26 PM - Forum: General Coding Help - Replies (3)

Hello I not very good with python i still learn. I use Python 3 on trinket (website) because our school we only have chromebooks. I have had this issu..... More

Print this item

  I code a program to solve puzzle but i can't make it more dynamic.
Posted by: Shahmadhur13 - Apr-16-2020, 08:52 PM - Forum: General Coding Help - Replies (5)

[python]
# find the first number that is divided by 1 to 9 with 0 remainder
for i in range (10000):
x = i % 3
y = i % 4
z = i % 7
a = i % 5..... More

Print this item

  Push Button issue
Posted by: gvin47 - Apr-16-2020, 06:39 PM - Forum: GUI - Replies (8)

Please help !
I need help with making my Stopwatch run after click on Button "Start"
===
import sys

from PyQt5.QtCore import Qt, QTimer
from Py..... More

Print this item

  adddate interval in python
Posted by: Steve42 - Apr-16-2020, 06:31 PM - Forum: General Coding Help - Replies (2)

Using mysql I can get this to work. I
want to get all missing days between 2 dates.
The table was last updated on 4-10-2020. Today is 4-16-2020
A..... More

Print this item

  Extract data from sports betting sites
Posted by: nestor - Apr-16-2020, 05:29 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi, as the title suggests, I would like to extract data from sports betting sites, with this code I download the html of the site[python]
from bs4 im..... More

Print this item

  Loop face landmarking in all folder using dlib
Posted by: lokoprof - Apr-16-2020, 05:02 PM - Forum: General Coding Help - Replies (5)

I have this code that landmarked selected regions (points) in human face using dlib. I wrote the code to only work for one image, but I have many imag..... More

Print this item

  What are the possible values for LC_COLLATE ?
Posted by: arbiel - Apr-16-2020, 02:30 PM - Forum: General Coding Help - Replies (2)

Hi

To collate ancien greek words, I tried, without any success, to set LC_COLLATE.
Here is an exemple of my tries
[python]
>>> import locale
>>..... More

Print this item

  connect via ssh to a remote host and run a command locally
Posted by: bartibog - Apr-16-2020, 02:30 PM - Forum: Networking - No Replies

Hi everyone,

i'm new to python, please don't hold that against :-)

i'm looking to ssh into a remote computer and run a command locally, this is ..... More

Print this item

  SKUNK Dice Game
Posted by: ProntName - Apr-16-2020, 02:24 PM - Forum: Code sharing - Replies (9)

Good Morning Everyone!

Feel free to jump right down to the code, but a little bit about me:

So I decided to pick up coding at the beginning of A..... More

Print this item

  python/ Beeware
Posted by: sybe - Apr-16-2020, 02:20 PM - Forum: General Coding Help - Replies (6)

I have a problem with the 'toga import':

import toga
ModuleNotFoundError: No module named 'toga'
C:\beeware-tutorial\helloworld\src\helloworl..... More

Print this item

  12 years old python turtle program
Posted by: eXcalibur432 - Apr-16-2020, 02:04 PM - Forum: Code Review - Replies (4)

Hello,I am a six grade student.Iam a Turkish.İf I made a mistake you didn't see it Tongue .
I made a program with using python turtle.It my firs..... More

Print this item

  How to get a reverse order of a number?
Posted by: tonyflake - Apr-16-2020, 01:17 PM - Forum: General Coding Help - Replies (1)

[python]
num = 4576
num_p = 0
num_t = num
while num != 0:
num_p = num_p * 10 + num % 10
num = num / 10 ..... More

Print this item

  Combobox dropbox appear top left screen corner
Posted by: flabada - Apr-16-2020, 01:14 PM - Forum: GUI - Replies (16)

I face a strange issue with the Tkinter combobox. I run this simple GUI with a combobox. A month ago, on my windows 10 the tkinter combobox start to a..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data fetching for indian ... 6 hours ago drakhsin drakhsin General Codin...
  Brazil Python Help to aut... Yesterday, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... Yesterday, 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...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
Most views
  The best Prog... 579236
  Tutorial Requ... 512048
  Web Scraping ... 442163
  Newbie with P... 386286
  New Users Int... 379386
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+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
drakhsin Today
MileHigh303 Yesterday
ndx101 Yesterday
OtiliaBecker Yesterday
NAGASOWMYAGUNDU 11-20

User Panel Messages

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