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,248
» Latest member: kai_cow2710
» Forum threads: 38,779
» Forum posts: 175,819

Full Statistics

Online Users
There are currently 47 online users.
» 1 Member(s) | 37 Guest(s)
Applebot, Bing, Google, Twitter, AOL, buran

Latest Threads
New to python and coding
Forum: Homework
Last Post: jefsummers
1 hour ago
» Replies: 4
» Views: 102
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
3 hours ago
» Replies: 6
» Views: 172
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 09:52 AM
» Replies: 11
» Views: 300
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 05:07 AM
» Replies: 5
» Views: 272
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 101
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,620
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 202
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 189
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,207
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,422

 
  arraylist to json
Posted by: soonyu - Aug-23-2021, 05:15 PM - Forum: General Coding Help - Replies (1)

look for help for the below:
i have list of item in array;

for row  in rows:
        t=(row[0])
        rowarray_list.append(t)
..... More

Print this item

  getting the length of a file in a loop
Posted by: sgcgrif33 - Aug-23-2021, 04:33 PM - Forum: General Coding Help - Replies (1)

Ive got a code which processes a load of files and turns the output into a single matlab file.

In this code I now want it to record the length (how..... More

Print this item

  Get amount of bytes in a file
Posted by: chesschaser - Aug-23-2021, 03:07 PM - Forum: General Coding Help - Replies (1)

Hi guys!

I am writing a program and it has a variable in it of type bytes. i need to get the amount of bytes this variable contains.
Any help will..... More

Print this item

  Why am I getting list elements < 0 ?
Posted by: Mark17 - Aug-23-2021, 02:10 PM - Forum: General Coding Help - Replies (8)

Hi all!

Here's some code:

[Python]
price_chg = np.arange(-10,11,2)

stock_prices = [100]

for i in range(10001):
if (stock_prices[-1] ..... More

Print this item

  What if a column has about 90% of data as outliers?
Posted by: Asahavey17 - Aug-23-2021, 02:04 PM - Forum: Data Science - Replies (1)

I'm working on a prediction problem where one of the columns, when checked for outliers show that almost 90% of its data are outliers. What should be ..... More

Print this item

  the table is upside down
Posted by: phochka - Aug-23-2021, 01:56 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I'm coming back because I can't scrape the table

the table is upside down

Help: how can I do it?


Attached Files

.py   main.py (Size: 437 bytes / Downloads: 393)
Print this item

  Using Excel Cell As A Variable In A Loop
Posted by: knight2000 - Aug-23-2021, 06:24 AM - Forum: General Coding Help - Replies (7)

Hi all,

As a relative newbie to Python and webscrapping, I've been trying to learn more about headers and proxies- in terms of rotating them from a..... More

Print this item

  Student project - alert action when X happens Y amt of times, how?
Posted by: unknown00 - Aug-22-2021, 04:16 PM - Forum: Homework - Replies (2)

Disclaimer - I am not a professional dev/engineer
Use case = check if X happens Y amt of times, do something/alert
For the sake of this post, let's ..... More

Print this item

  [SOLVED] Why does regex fail cleaning line?
Posted by: Winfried - Aug-22-2021, 02:26 PM - Forum: General Coding Help - Replies (7)

Hello,

I can't figure out why this regex fails editing an XML header:

[python]with open(INPUTFILE) as reader:
content = reader.read()
#I need..... More

Print this item

  Web Scraping in Python
Posted by: phochka - Aug-22-2021, 11:59 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

I am new user
Need some assistance on web scraping, the url is (https://www.geny.com/reunions-courses-pm...2021-08-20)
..... More


Attached Files

.py   main.py (Size: 553 bytes / Downloads: 402)
Print this item

  Memory Location, Object Attributes and how to use them
Posted by: Meld51 - Aug-22-2021, 11:39 AM - Forum: General Coding Help - Replies (1)

Here's something fundamental that I don't understand about the Object Oriented paradigm and I could do with some discussion on this. Obviously I am a ..... More

Print this item

  Converting an RGBA image to Grayscale and Binary
Posted by: Joni_Engr - Aug-22-2021, 10:42 AM - Forum: General Coding Help - Replies (3)

Hi, I have a RGBA image which I need to convert to Grayscale and then to binary with a threshold to get binary histogram but I have 2D Grayscale image..... More

Print this item

  How to replace column of a Matrix
Posted by: Joni_Engr - Aug-22-2021, 09:02 AM - Forum: General Coding Help - Replies (5)

Hi,

I am wondering how to replace column of one matrix with another matrix column. Here is my code.

[python]
import random
import numpy as n..... More

Print this item

  concurrent.futures help
Posted by: samuelbachorik - Aug-21-2021, 08:35 PM - Forum: General Coding Help - Replies (2)

Hi i want to ask you what is the difference betwen map() and submit()

Two codes examples

[python] with concurrent.futures.ProcessPoolExec..... More

Print this item

Exclamation MongoDB cannot connect - pymongo
Posted by: speedev - Aug-21-2021, 12:59 PM - Forum: General Coding Help - Replies (1)

When I try to connect to MongoDB, I can't connect. It says the machine on the other end refused the connection.

[python]import pymongo

baglanti ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Still do not get how Python iterates over a file
Posted by: tester_V - Aug-21-2021, 04:44 AM - Forum: General Coding Help - Replies (13)

Greetings!
I'm trying to code in python for about a year now, had some success but I still do not understand how it iterates over a file.
for exampl..... More

Print this item

  Importing Help
Posted by: mkgrtn - Aug-20-2021, 11:34 PM - Forum: General Coding Help - Replies (3)

Hello I am a newbie in python programming and I would appreciate any help. TYIA
I have a program called ptemp which is composed of the following
imp..... More

Print this item

  Subtracting datetimes [index]
Posted by: Mark17 - Aug-20-2021, 07:37 PM - Forum: General Coding Help - Replies (2)

Hi all,

When I download stock data from Yahoo! Finance, it comes in a dataframe with datetime index. What I'm ultimately trying to do here is add ..... More

Print this item

  Warning message not sure about
Posted by: mbrown009 - Aug-20-2021, 07:13 PM - Forum: General Coding Help - No Replies

[python]
import datetime

#!/usr/bin/env python
__author__ = "Michael Brown"
__license__ = "Based off of sript by Sreenivas Bhattiprolu of Python..... More

Print this item

  Which network architecture should be chosen to predict disease severity?
Posted by: AlekseyPython - Aug-20-2021, 07:09 PM - Forum: Data Science - Replies (2)

Python 3.9.6, Pytorch 1.9.0+cu111

I have several text fields describing various aspects of a patient's treatment (filled in by the doctors). The enti..... More

Print this item

  Searching for URLs and printing the corresponding row from an Excel spreadsheet
Posted by: johnbernard - Aug-20-2021, 06:43 PM - Forum: General Coding Help - No Replies

Hi,

So far I have created a script that identifies the last modified folder in a list, appends all the spreadsheets in it and then outputs a new ap..... More

Print this item

  code decode, string, image ...
Posted by: teckow - Aug-20-2021, 06:28 PM - Forum: General Coding Help - Replies (2)

This is code to decode QR image to ascii. I would like to code asci string to QR image...
So i need the opposite of this code..

How can i do it ?..... More

Print this item

  pip3 install mesh-renderer install error
Posted by: linuxhacker - Aug-20-2021, 05:47 PM - Forum: Bar - No Replies

install error Ask for help Thank you
pip3 install mesh-renderer
Collecting mesh-renderer
Using cached mesh_renderer-1.4.tar.gz (21 kB)
Building..... More

Print this item

  csv files
Posted by: faustineaiden - Aug-20-2021, 03:44 PM - Forum: General Coding Help - Replies (1)

I'm new to python. When reading and writing csv files, I want to achieve that the values corresponding to the dialogue column and the values correspon..... More


Attached Files

Thumbnail(s)
   
Print this item

Information Website to find API and database
Posted by: RuyCab - Aug-20-2021, 01:58 PM - Forum: Data Science - Replies (2)

There's any website that I can find a database to test my codes ?
Ans the same question, there's any website where I can find API's ?

Print this item

  Acess variables from class
Posted by: samuelbachorik - Aug-20-2021, 01:56 PM - Forum: General Coding Help - Replies (3)

Hi I have class like this and staticmethod inside. I want to ask you how to acess self. variables from class ? For example - self.paths

[python]cla..... More

Print this item

  Done in no time?
Posted by: Mark17 - Aug-20-2021, 01:47 PM - Forum: General Coding Help - Replies (2)

Hi all,

Here's some (slightly modified) code I got from an article on vectorization:

[Python]
# Dot product
import time
import numpy
import ..... More

Print this item

  Senior DevOps Engineer - Remote US & Canada
Posted by: patpat - Aug-20-2021, 11:51 AM - Forum: Jobs - No Replies

At ThreeComma, we build and work with the latest breakthrough technologies today that businesses rely on to lead their industries into tomorrow. We ..... More

Print this item

  Read Tensorflow Documentation - Clarification
Posted by: IoannisDem - Aug-20-2021, 10:36 AM - Forum: General Coding Help - No Replies

Hello,

I am currently trying to work with tensorflow and keras and I have been following some tutorials while using the online documentation as wel..... More

Print this item

  ascii question
Posted by: DPaul - Aug-20-2021, 09:07 AM - Forum: General Coding Help - Replies (9)

In the homework section, a Cesar cypher is presented.
A string of symbols is provided:
[python]SYMBOLS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop..... More

Print this item

  regular expression question
Posted by: Skaperen - Aug-20-2021, 12:43 AM - Forum: General Coding Help - Replies (4)

i want to match part of a string against a regular expression. normally i would just slice the string and pass that part to re. but my code is not i..... More

Print this item

  Slicing dataframe as series vs. dataframe?
Posted by: Mark17 - Aug-19-2021, 04:25 PM - Forum: General Coding Help - No Replies

I just figured out this works to print out every 10th row in one df:

df.iloc[::10,]
Why did I not need double brackets, tho..... More

Print this item

  Sorting and Merging text-files [SOLVED]
Posted by: AlphaInc - Aug-19-2021, 01:03 PM - Forum: General Coding Help - Replies (10)

Hello everybody,

With a batch-script I export mutliple text-files to a specific folder where I want to merge them into one.
Therefore I used the t..... More

Print this item

  Capture Sound from Mirophone and speakers
Posted by: marinos13 - Aug-19-2021, 09:41 AM - Forum: General Coding Help - Replies (3)

We are using amazon transcribe to make speach to text but we need to capture sound from both microphone and speakers. Do you think that this can be do..... More

Print this item

  Transfer function tanh(Tes)
Posted by: swagata - Aug-19-2021, 09:05 AM - Forum: General Coding Help - Replies (2)

Hi,
I need to build a transfer function ( see the attached screenshot)    
[python]FS= (1-ZP.tanh(Te.s))/(1+ZP.tanh(Te.s))

s = cont..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 1 hour ago lary_p jefsummers Homework
  Help with Serial.write in... 3 hours ago racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... Yesterday, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... Yesterday, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [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
Most views
  The best Prog... 578849
  Tutorial Requ... 509890
  Web Scraping ... 441918
  Newbie with P... 385920
  New Users Int... 376207
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+ 12107
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
kai_cow2710 Today
Kacper Yesterday
isla123456 Yesterday
vibrometro Yesterday
thebigback 11-10

User Panel Messages

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