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,240
» Latest member: AcoolPurpleOne1863
» Forum threads: 38,777
» Forum posts: 175,795

Full Statistics

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

Latest Threads
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
2 hours ago
» Replies: 1
» Views: 26
Data Science
Forum: Data Science
Last Post: mamta25
2 hours ago
» Replies: 3
» Views: 2,568
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
9 hours ago
» Replies: 1
» Views: 98
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 147
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 126
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 126
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,283
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,379
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,580
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 206

 
  JSONDecodeError: Expecting value
Posted by: mehtamonita - Mar-07-2022, 10:05 AM - Forum: General Coding Help - Replies (1)

Hi,

I'm trying to read json content from a url, however, it is displaying the below error in spite of status 200 (<Response [200]>).

JSONDecode..... More

Print this item

  Chi-square with the contingency table applied to the die
Posted by: Leloup - Mar-07-2022, 09:39 AM - Forum: Data Science - Replies (4)

Bonjour,

I am trying to apply the χ2 test by contingency table from the exploratory statistics course to the results given in Example 1 from Wikipe..... More


Attached Files

Thumbnail(s)
   
Print this item

  Download mp4 files from an url
Posted by: q988988 - Mar-07-2022, 05:14 AM - Forum: General Coding Help - Replies (2)

I am trying to get some codes to be able to: enter the time frame (e.g. 2021-11-25 11:00 to 2021-11-29 02:19) -> find the links corresponding to those..... More


Attached Files

Thumbnail(s)
   
Print this item

  what can i uuse ... for?
Posted by: Skaperen - Mar-07-2022, 02:05 AM - Forum: News and Discussions - Replies (7)

i have a function with an argument that needs to be highly flexible. it already has various cases for ints and strings and True and False. i am wond..... More

Print this item

  Saving the state of a program...
Posted by: bytecrunch - Mar-07-2022, 12:57 AM - Forum: General Coding Help - Replies (5)

Hello,

I would like to make sure that I have the correct understanding of what saving the state of a program means. Say we write a Py..... More

Print this item

  is there an implied encodin in file names being opened?
Posted by: Skaperen - Mar-07-2022, 12:09 AM - Forum: News and Discussions - Replies (10)

the encoding= option of open() applies to the file contents (according to The Python Library Reference) . there appears to be no way to specif..... More

Print this item

  wait for the first of these events
Posted by: Skaperen - Mar-06-2022, 11:12 PM - Forum: General Coding Help - Replies (4)

i want to wait for the first event to happen of these two events

1. the time one second in the future. just doing time.sleep() is not usable sinc..... More

Print this item

  dict class override: how access parent values?
Posted by: Andrey - Mar-06-2022, 10:32 PM - Forum: General Coding Help - Replies (1)

I'm try override dict class for way that compatible with standart dict class. How i can get access to parent dict attribute if i override getitem meth..... More

Print this item

  Unable to send email attachments
Posted by: cosmarchy - Mar-06-2022, 07:28 PM - Forum: General Coding Help - Replies (7)

Hi,

I'm trying to end email attachments and have written the following:
[python]import os
import smtplib
import random
from email.mime.multipa..... More

Print this item

  Clicking on the button crashes the TK window
Posted by: ODOshmockenberg - Mar-06-2022, 05:33 PM - Forum: GUI - Replies (1)

[python]import time
from tkinter import *

import pyautogui

root = Tk()
root.geometry('400x200')

def button_command():
text = int (entr..... More

Print this item

  Refactoring to a class
Posted by: Tek - Mar-06-2022, 03:28 PM - Forum: General Coding Help - Replies (1)

I've got an old and simple procedural port scanner script that I'm working on refactoring into a class. They are certainly not functioning similarly a..... More

Print this item

  performance in network host of manager in multiprocessing
Posted by: rmaleki - Mar-06-2022, 02:09 PM - Forum: Networking - Replies (2)

Hi
I run my own project with gunicorn (multi worker) and I wanted to share objects between processes. I used BaseManager from the multiprocessing pyt..... More

Print this item

  SOLVED: scipy.optimize.least_squares problem
Posted by: Skytter13 - Mar-06-2022, 09:50 AM - Forum: Data Science - Replies (2)

Hi,
I'm trying to make a code to solve a overdetermined system of non-linear equations.
It is to be used to locate positions of instruments on sea ..... More

Print this item

  Django and AWS S3 media storage
Posted by: rwahdan - Mar-06-2022, 08:47 AM - Forum: Web Scraping & Web Development - No Replies

Hi,

I have an app that will upload photos and videos but i keep getting server error 500. I am not sure how to configure the AWS S3 for media corre..... More

Print this item

  Get online(Live) sound from Mic?
Posted by: korenron - Mar-06-2022, 08:36 AM - Forum: General Coding Help - No Replies

Hello,
I have connected a usb mic to my pi and I can record from it (so everything is working :-) )

I want to be abel to get real-time audio ,
ca..... More

Print this item

  confused about string formatting
Posted by: barryjo - Mar-05-2022, 09:45 PM - Forum: General Coding Help - Replies (7)

I am confused about string formatting.

If I have a number 14.20003 I want to make it into a string s = 14.20

Do I use the "f" format or the "%" ..... More

Print this item

  Mock obj - How to call the side_effect every time during the run?
Posted by: pythonisbae - Mar-05-2022, 03:07 PM - Forum: General Coding Help - Replies (3)

I need to mock an object with a bunch of methods. For all except one Mock() is perfect for me. But for one of the methods, I actually need to call a f..... More

Print this item

  ModuleNotFound error.
Posted by: hammer - Mar-05-2022, 01:17 PM - Forum: General Coding Help - Replies (5)

I created a new environment (env2) and used pip to install KivyCalendar-indicates installed successfully,see below. The application and its associated..... More

Print this item

  What Python skills for a fraud detective?
Posted by: MaartenRo - Mar-05-2022, 05:14 AM - Forum: Bar - Replies (3)

Hi,

I am going to work at a government agency as a financial fraud IT detective. At the agency we confiscate computers from suspected individuals a..... More

Print this item

  The simplest way to search through Csv
Posted by: Ayobami_codes - Mar-05-2022, 01:17 AM - Forum: Code Review - No Replies

Hi there, i have got some set of csv i auto generate and i need advise on the following:

1. i have three labels on the csv ( Serial Number, Starti..... More

Print this item

Question I am struggling with basic json library + sql alchemy w/ mariadb-connector json ->sql
Posted by: BrandonKastning - Mar-04-2022, 06:20 PM - Forum: General Coding Help - No Replies

I am struggling with basic json library + sql alchemy w/ mariadb-connector json ->sql

[CODE]
# Source: Courtlistener.com - Washington Supreme Cour..... More

Print this item

  geojson to json --missing multiple row output
Posted by: yoshi - Mar-04-2022, 05:39 PM - Forum: General Coding Help - Replies (9)

I have a geojson file zz.geojson and want to convert it to json and csv. I was trying the below for json conversion, it converts but I only get 1 row ..... More

Print this item

  Python3 url parse
Posted by: ogautier - Mar-04-2022, 04:39 PM - Forum: General Coding Help - Replies (5)

[quote]
Hello,

I'm trying to extract the assets(ADAUSD,BTCUSD,DOGEUSD,DOTUSD,ETHUSD,LTCUSD,SHIBUSD,XMRUSD,XRPUSD,SOLUSD) part of the following url..... More

Print this item

  Can Not Activate Environment
Posted by: hammer - Mar-04-2022, 02:10 PM - Forum: General Coding Help - Replies (6)

I think I created an environment correctly sometime in recent past but I can not get it to activate now. Below is command result and my directory tree..... More

Print this item

  What is positional argument self?
Posted by: Frankduc - Mar-04-2022, 02:09 PM - Forum: General Coding Help - Replies (22)

Hello,

I am having this error message and i just dont understand what it means in the context.

[python]from tkinter import *


class Temperat..... More

Print this item

  filter every 24 days file (considering file name)
Posted by: RolanRoll - Mar-04-2022, 08:39 AM - Forum: General Coding Help - Replies (5)

Hi
I have a folder that contains many eof extension files name I want to sort them in ordinary way with python code (as you can see in my example the..... More

Print this item

  how to do a two-way wait
Posted by: Skaperen - Mar-03-2022, 11:06 PM - Forum: General Coding Help - Replies (2)

i did this once before. i'm still looking for that old code among 10000+ files. but i'm worried that code has some "clever" solution based on specif..... More

Print this item

  Python3 List in requests
Posted by: ogautier - Mar-03-2022, 08:57 PM - Forum: General Coding Help - Replies (1)

[quote]
Hello, Id like to know if is possible to pass a list of parameters to the following url: https://api.kraken.com/public/Ticker?pair='ADAUSD'
..... More

Print this item

  trying to write a dictionary in a csv file
Posted by: CompleteNewb - Mar-03-2022, 07:36 PM - Forum: General Coding Help - Replies (13)

I'm trying to write the dictionary straightlist in a csv file like this

Rank , Hand
1,[['10', 'X'], ['11', 'X'], ['12', 'X'], ['13', 'X'], ['14', ..... More

Print this item

Question Change Treeview column color?
Posted by: water - Mar-03-2022, 06:40 PM - Forum: GUI - Replies (3)

In tkinter Treeview, use tags just could be change something by row, can I change something by column?
[python]
from tkinter import Tk, ttk

root_..... More


Attached Files

Thumbnail(s)
   
Print this item

  How can I add an end line character after every value that I receive?
Posted by: GiggsB - Mar-03-2022, 08:56 AM - Forum: General Coding Help - Replies (11)

Hi,
I have the below python code. I am using the UART communication protocol to get data from a microcontroller. Currently, I am sending an end line ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Pandas read_csv
Posted by: markf7319 - Mar-03-2022, 04:59 AM - Forum: Data Science - No Replies

I am trying to import data via pandas read csv module and create a simple graph using the data. One consists of a 5 day time frame set to the variabl..... More


Attached Files

Thumbnail(s)
       
Print this item

  ping program in Python
Posted by: Skaperen - Mar-02-2022, 11:17 PM - Forum: News and Discussions - Replies (13)

i am looking for a Python3 implementation of the ping program. i've already done one that invokes /bin/ping and it is too awkward to do what i want (..... More

Print this item

  Generate Python variables dynamically
Posted by: Pedroski55 - Mar-02-2022, 10:51 PM - Forum: General Coding Help - Replies (5)

For getting data from MySQL and displaying it in my output.php, I dynamically create PHP variables

[quote]$i = 0;
$j = 0;
foreach($allQsdata as $..... More

Print this item

  Lists
Posted by: Leo - Mar-02-2022, 10:25 PM - Forum: Homework - Replies (3)

Hello everyone
I am very close to being able to finish this one. I just have a formatting issue that my professor requires be done in a certain way.
H..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [split] print two differe... 2 hours ago Reema Gribouillis General Codin...
  Data Science 2 hours ago Oshadha mamta25 Data Science
  [Tkinter] I’m building a ... 9 hours ago tsgiannis woooee GUI
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
Most views
  The best Prog... 578725
  Tutorial Requ... 509392
  Web Scraping ... 441865
  Newbie with P... 385823
  New Users Int... 375283
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
AcoolPurpleOne1863 Today
racingsubby Today
Reema Today
lary_p Yesterday
Cristiano 11-08

User Panel Messages

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