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,526
» Latest member: tomanadoveza
» Forum threads: 38,660
» Forum posts: 175,187

Full Statistics

Online Users
There are currently 337 online users.
» 2 Member(s) | 327 Guest(s)
Apple, Baidu, Google, AOL, Yandex, AOL, Axel_Erfurt, snippsat

Latest Threads
Qt Event Filtering
Forum: GUI
Last Post: Axel_Erfurt
54 minutes ago
» Replies: 1
» Views: 27
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
3 hours ago
» Replies: 7
» Views: 361
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 04:00 PM
» Replies: 3
» Views: 225
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 02:41 AM
» Replies: 5
» Views: 228
[SOLVED] Why does regex f...
Forum: General Coding Help
Last Post: Pedroski55
Jul-11-2025, 11:52 PM
» Replies: 7
» Views: 3,980
Custom Sorting List of Di...
Forum: Homework
Last Post: Larz60+
Jul-11-2025, 03:34 PM
» Replies: 1
» Views: 141
Coding Standards
Forum: General Coding Help
Last Post: snippsat
Jul-11-2025, 01:12 PM
» Replies: 2
» Views: 223
Make code run faster: poi...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:24 AM
» Replies: 3
» Views: 763
Cleaning my code to make ...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:20 AM
» Replies: 14
» Views: 4,340
Data cleaning help
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:18 AM
» Replies: 2
» Views: 2,915

 
  Python Resampling: How do I obtain the value of the last week of the month?
Posted by: JaneTan - Dec-09-2022, 05:23 AM - Forum: General Coding Help - Replies (2)

Hi

I want to resample to obtain all the values of the last week of the month. However, there are some weeks that overlap between 2 months. For Pyth..... More

Print this item

  [split] How Can get the graph library?
Posted by: marceldcv - Dec-08-2022, 09:52 PM - Forum: News and Discussions - Replies (1)

Hello Man, How Can get the graph library? I can't find the library.
Thanks

Print this item

Heart Python for frontend !
Posted by: SpongeB0B - Dec-08-2022, 07:45 PM - Forum: News and Discussions - Replies (9)

Hi,

While I was looking how to use Python for the front-end
I discover a great suggestion on the Mozilla "ideas box" aka connect, so I'll share i..... More

Print this item

  Build and deploy Python apps for the cloud
Posted by: Rk2 - Dec-08-2022, 06:30 PM - Forum: Tutorial Requests and Submissions - No Replies

This tutorial walks a developer step-by-step through creating a REST API and deploying it to AWS, GCP or Azure with the Nitric Framework.

The develop..... More

Print this item

  Web Scraping Stuff
Posted by: Korgik - Dec-08-2022, 12:53 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi there Big Grin

What kind of stuff do you usually use for web scraping and parsing? I am just a beginner in this area and I would like to kn..... More

Print this item

  Webscraping returning empty table
Posted by: Buuuwq - Dec-08-2022, 12:39 PM - Forum: Web Scraping & Web Development - No Replies

Hi, I'm trying to extract a table from a webpage and have tried a number of alternatives, but the table always seems to remain empty.

Two of what I t..... More


Attached Files

Thumbnail(s)
   
Print this item

  python pandas sql table with header
Posted by: mg24 - Dec-08-2022, 09:21 AM - Forum: General Coding Help - Replies (3)

Hi Team,

please help me first time using pandas for extracting sql table with headers into csv file.

how to write below header line to csv.
write..... More

Print this item

  Impute 1 if previous row of 'days' column is between 0 & 7
Posted by: JaneTan - Dec-08-2022, 05:17 AM - Forum: Data Science - Replies (2)

Hi,

Basically, I want to impute 1 in 'Check' column if the previous row of 'days' is >=0 and <7.
I wrote the below code, but it only looks at curr..... More

Print this item

  how to capture output from license() in one Python process?
Posted by: Skaperen - Dec-08-2022, 03:35 AM - Forum: News and Discussions - No Replies

how to code a script that can capture the output from the license() function in one Python process (not running a 2nd instance to capture outpu..... More

Print this item

  Prompt of Access ( Authentication Http ) ?
Posted by: JohnnyCoffee - Dec-07-2022, 10:27 PM - Forum: Networking - Replies (4)

I'm doing some authentication tests through the http header, but the browser's login prompt window isn't being triggered? I think I'm forgetting somet..... More

Print this item

  filedialog, open a file error
Posted by: liketocode - Dec-07-2022, 07:55 PM - Forum: GUI - Replies (4)

Hello

I would like to know how to avoid an error when i close the window instead of choosing a file to open.
Window that show after clicking on "..... More

Print this item

  Prompt of Access ( Authentication Http ) ?
Posted by: JohnnyCoffee - Dec-07-2022, 04:11 PM - Forum: General Coding Help - Replies (1)

I'm doing some authentication tests through the http header, but the browser's login prompt window isn't being triggered? I think I'm forgetting somet..... More

Print this item

  rotate error function
Posted by: schniefen - Dec-07-2022, 02:40 PM - Forum: Homework - No Replies

I would like to rotate a function that is defined in terms of the error function, see here. I ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Return the [Date] that within the last 14 days
Posted by: bnadir55 - Dec-07-2022, 01:09 PM - Forum: General Coding Help - Replies (5)

Hi, I have a column [Date] in df that return date in this format : 20220628T065216.437 GMT
I need to return the [Date] that within the last 3 days,
tr..... More

Print this item

  How do you create a scatterplot of dataframe using matplotlib?
Posted by: asdad - Dec-07-2022, 01:00 PM - Forum: General Coding Help - Replies (2)

A very simple question.

I tried looking for how to make a scatterplot with matplotlib (as usual, the official documentation was irrelevant) ..... More

Print this item

  Cube drawing for 3D Tic-Tac-Toe Python game
Posted by: freethrownucleus - Dec-07-2022, 12:27 PM - Forum: GUI - Replies (7)

Hi, I need some help.
I need to draw a cube (like this) [Image: 8HGHVN].
If anyone could help, I would really appreciate it! :..... More


Attached Files

Thumbnail(s)
   
Print this item

  Setting For Loop Counter
Posted by: rturus - Dec-07-2022, 12:21 PM - Forum: General Coding Help - Replies (2)

I am trying to set the counter to the one less if the input does not match with list. However, it seems that it does not set the counter. Any idea ple..... More

Print this item

  merge two csv files into output.csv using Subprocess
Posted by: mg24 - Dec-07-2022, 08:11 AM - Forum: General Coding Help - Replies (9)

Hi Team,

I want to merge two csv files, data1.csv and data2.csv , and create Output.csv


via command line this script works.
copy /b D:\output..... More

Print this item

  Write Null values as 0.0 (float) type in csv
Posted by: mg24 - Dec-07-2022, 06:46 AM - Forum: General Coding Help - Replies (3)

Hi Team,

with the below code I am extracting sql table data into CSV File with delimiter '|'

in SQL Table,in some fields ['Market Price',"Sprea..... More

Print this item

  Python Resample: How do I keep NaN as NaN?
Posted by: JaneTan - Dec-07-2022, 02:11 AM - Forum: General Coding Help - Replies (3)

When resample from monthly data to quarterly, I want my last value NaN to remain as NaN. How should I tweak my code?

Thank you

[img]https://i.st..... More

Print this item

  Binary tree
Posted by: AlexPython - Dec-06-2022, 09:28 PM - Forum: General Coding Help - Replies (3)

let said that I get a randomly created array of 12 numbers for this tree below instead of having the number picked by me, should I hand-pick the root?..... More

Print this item

  UTF-8 and UTF-16
Posted by: garynewport - Dec-06-2022, 07:09 PM - Forum: General Coding Help - Replies (5)

I encountered an interesting problem in that PowerShell under Windows 11 will create any new file as UTF-16 instead of UTF-8. It is possible to set Po..... More

Print this item

  Ldap3 and windows authentication
Posted by: Valerian - Dec-06-2022, 02:59 PM - Forum: News and Discussions - No Replies

Hi everybody,

Is anyone already has find a way to use the windows gMSA to bind with ldap3 ?

I'm kind of stuck.

Print this item

  telnetlib error
Posted by: 3lnyn0 - Dec-06-2022, 02:16 PM - Forum: General Coding Help - Replies (1)

Hi! Please help, what is wrong with my code?
I don't know where is the problem. :(

[python]import getpass
import telnetlib

HOST = 'routers'
u..... More

Print this item

  Counting Duplicates in large Data Set
Posted by: jmair - Dec-06-2022, 01:52 PM - Forum: Data Science - Replies (3)

My students and I were discussing the difference between possible and probability when it comes to lottery numbers. Is the sequence 1 2 3 4 5 6 just a..... More

Print this item

  Dictionary help
Posted by: iuno - Dec-06-2022, 09:12 AM - Forum: General Coding Help - Replies (5)

I am working on a simple telnet program that interacts with a Lutron lighting system. The Lutron system allows me to enter a monitoring mode where it ..... More

Print this item

  using paramiko to see resualt
Posted by: korenron - Dec-06-2022, 08:43 AM - Forum: General Coding Help - Replies (4)

Hello,
I'm trying to connect using SSH and send some commands
how can I see the result of the command ?
for example
[python]
answer = ssh.e..... More

Print this item

  How I could do that in the best way?
Posted by: Kalet - Dec-06-2022, 07:00 AM - Forum: General Coding Help - Replies (5)

Hi, I would like to know if there is a way to validate the '{}' when I receive them in a function. For example, I receive a URL and I have two paramet..... More

Print this item

  Is it possible to see dependencies before installing a package?
Posted by: quazirfan - Dec-06-2022, 06:31 AM - Forum: General Coding Help - Replies (4)

I want to see the list of dependencies(packages) a given package depends on before installing the package.

For example, pandas depend on numpy. Is ..... More

Print this item

  List joining
Posted by: deatz - Dec-05-2022, 07:50 PM - Forum: Homework - Replies (14)

Good day,

I have searched and read and tried options for days... I know it must be simple, yet here I am.

I am creating a list from two user inp..... More

Print this item

  Syntax error
Posted by: tibbj001 - Dec-05-2022, 06:12 PM - Forum: General Coding Help - Replies (2)

I'm getting a Syntax error on the final line, unsure why?

[python]# Function to prepare data for deep learning
def prepare_dl_data(data):
# ..... More

Print this item

  Validating Dataframe Using Second Dataframe
Posted by: tdbozarth - Dec-05-2022, 06:03 PM - Forum: Data Science - No Replies

Hello all,

I am new to Python but not new to programming. I have a datafile of 28k rows x 18cols (skudata) that I am loading into a dataframe (cat..... More

Print this item

  Advent of Code
Posted by: astral_travel - Dec-05-2022, 06:01 PM - Forum: General Coding Help - Replies (29)

hey,
i'm trying the advent of code challange,

i currently have the following code:

[python]
input_file = open("/home/tal/PycharmProjects/pythonProje..... More


Attached Files

.txt   input.txt (Size: 10.22 KB / Downloads: 211)
Print this item

  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync'
Posted by: stsxbel - Dec-05-2022, 02:07 PM - Forum: General Coding Help - Replies (2)

Good afternoon. I installed a new server, installed pymodbus via pip, uploaded my scripts that worked on the old server, but when I start it, I get an..... More

Print this item

  seaching for a library: nondeterministic letter manipulation in sentences
Posted by: Myron - Dec-05-2022, 11:59 AM - Forum: General Coding Help - Replies (2)

I'm looking for a non-deterministic python library for:
Given a sentence string, manipulate it such that its meaning is not changed but the letters a..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Qt Event Filtering 54 minutes ago deanhystad Axel_Erfurt GUI
  Convert .pdf to .txt 3 hours ago vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... Yesterday, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... Yesterday, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
  Custom Sorting List of Di... 07-11, 15:34 aryasinner Larz60+ Homework
  Coding Standards 07-11, 13:12 kency snippsat General Codin...
  Make code run faster: poi... 07-11, 07:24 Bennygib FrankBuckland General Codin...
  Cleaning my code to make ... 07-11, 07:20 BSDevo FrankBuckland General Codin...
  Data cleaning help 07-11, 07:18 ClimbAddict FrankBuckland General Codin...
  Data cleaning and analysy... 07-11, 00:13 siriuslight Pedroski55 General Codin...
Most views
  The best Prog... 572637
  Tutorial Requ... 485675
  Web Scraping ... 437098
  Newbie with P... 380026
  Thread remain... 351368
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8174
snippsat 7351
deanhystad 6854
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
tomanadoveza Today
zaelizabethwift4333 Today
lessonanthony Today
sitedata Today
natalishtolze9977 Yesterday

User Panel Messages

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