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,934
» Latest member: XenonBlack
» Forum threads: 38,723
» Forum posts: 175,504

Full Statistics

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

Latest Threads
ShanePulse
Forum: General Coding Help
Last Post: OLanePulse
13 minutes ago
» Replies: 0
» Views: 3
Too much space between gr...
Forum: GUI
Last Post: RonR
47 minutes ago
» Replies: 2
» Views: 813
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
3 hours ago
» Replies: 0
» Views: 32
Expert Guidance Made Easy...
Forum: General Coding Help
Last Post: Alex12
4 hours ago
» Replies: 0
» Views: 41
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
8 hours ago
» Replies: 1
» Views: 351
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,396
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,488
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 332
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 108
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,849

 
  TreeView column headers
Posted by: TWB - Jan-28-2023, 09:18 PM - Forum: General Coding Help - Replies (2)

Hello all
I have posted a code section of a larger program where im trying to populate a a treeview with 2 columns and inset 2 values.
My issue is t..... More

Print this item

  Converting a json file to a dataframe with rows and columns
Posted by: eyavuz21 - Jan-28-2023, 08:13 PM - Forum: General Coding Help - Replies (13)

Hey all,

I am trying to convert a json file into a dataframe.

[python]import pandas as pd
import os
from pandas.io.json import json_..... More

Print this item

  fixing error TypeError: 'float' object is not subscriptable
Posted by: programmingirl - Jan-28-2023, 07:47 PM - Forum: Homework - Replies (1)

Hi there. I am working on a project on loan defaults and I am trying to convert the term variable into 36 or 60 integer numeric data type using .apply..... More

Print this item

  help how to get size of pandas dataframe into MB\GB
Posted by: mg24 - Jan-28-2023, 09:13 AM - Forum: General Coding Help - Replies (1)

Hi Team,

I want to convert memory usage of DataFrame into MB OR GB. in a Pythonic way.

below value I want to get size 19647323

[python]
import pa..... More

Print this item

  [SOLVED] [sqilte3] Check if column not empty?
Posted by: Winfried - Jan-28-2023, 03:44 AM - Forum: General Coding Help - Replies (5)

Hello,

Some rows might have an empty column.

How can I check it's filled with data?

[python]file = open("output.txt", 'at',encoding='utf-8')..... More

Print this item

  Issues with Anaconda installation...
Posted by: bytecrunch - Jan-27-2023, 11:29 PM - Forum: Data Science - Replies (2)

Hello,

I have downloaded Anaconda on a new Windows 10 machine. The installer did everything without errors BUT I still don’t see Anaconda in the St..... More


Attached Files

Thumbnail(s)
   
Print this item

  splitting a Dataframe Column in two parts
Posted by: nafshar - Jan-27-2023, 07:17 PM - Forum: General Coding Help - Replies (2)

I have a dataframe column for emal addresses and I am trying to find the count of the top domains.
I am sppliting the email using the '@" as the sep..... More

Print this item

  How to predict Total Hours needed with List as Input?
Posted by: caninan - Jan-27-2023, 04:20 PM - Forum: Data Science - No Replies

I am struggling with the problem I am facing: I have a dataset of different products (Cars) that have certain Work Orders open at a given time. I know..... More


Attached Files

Thumbnail(s)
   
Print this item

  [SOLVED] Epoch timestamp without milliseconds?
Posted by: Winfried - Jan-27-2023, 03:36 PM - Forum: General Coding Help - Replies (5)

Hello,

What's a good way to get an Epoch timestamp without the milliseconds?

[python]for row in cur.execute("SELECT id,created,title FROM conten..... More

Print this item

  How to auto align x-axis label
Posted by: SamLiu - Jan-27-2023, 02:15 PM - Forum: General Coding Help - Replies (2)

Hi all,

A matplotlib plt.bar demo create a chart as snapshots, how to set up x-axis label no shadow,thanks!!

[python]
import matplotlib.pyplot ..... More

Print this item

  Global variables or local accessible
Posted by: caslor - Jan-27-2023, 11:58 AM - Forum: General Coding Help - Replies (4)

Hi to all, allow me a small intro : i am self taught in programing , first learn to program in "c" (arduino) and later playing with a raspberry pi boa..... More

Print this item

  scraping code misses listings
Posted by: kolarmi19 - Jan-27-2023, 10:00 AM - Forum: Web Scraping & Web Development - No Replies

Hey everyone
i've got this python scraping code made for me that worked perfect few months but lately it miss some parameters while scraping.
you ca..... More

Print this item

  Do not get how Python iterates over a file
Posted by: tester_V - Jan-27-2023, 06:32 AM - Forum: General Coding Help - Replies (12)

Greetings!
I’m writing Python snippets here and there but I could never understand how Python iterates over a file.
It is kind of a mystery, a black..... More

Print this item

  Error when using FIND
Posted by: WJSwan - Jan-27-2023, 05:36 AM - Forum: General Coding Help - Replies (2)

I am trying to find a string in a text file and get an error on the first find statement.
[python]
xrefstart=irec.find("\x - \xo ")
..... More

Print this item

  Change a numpy array to a dataframe
Posted by: Led_Zeppelin - Jan-26-2023, 06:34 PM - Forum: General Coding Help - Replies (3)

As anyone can see from the attached screenshot after I scaled a dataframe, it is now a numpyndarray. That would make it hard to save. SO how do I conv..... More


Attached Files

Thumbnail(s)
   
Print this item

  SagaSim [ongoing project] - short summary
Posted by: Kamos5 - Jan-26-2023, 01:59 PM - Forum: Code Review - No Replies

Hi all. :)

I'm creating in my free time a simulation that was inspired by multiple sources (thelifeengine, crusader king II/III, dwarf fortress or li..... More


Attached Files

Thumbnail(s)
           
Print this item

  How to read in mulitple files efficiently
Posted by: garynewport - Jan-26-2023, 10:23 AM - Forum: General Coding Help - Replies (3)

I have multiple files, all containing 10s of thousands of lines of data. I cannot alter the way the data is presented and it appears as seen in the at..... More


Attached Files

Thumbnail(s)
   
Print this item

  I'm trying to figure out if this is a bug from a simple quiz at Future Skill
Posted by: fabstr1 - Jan-25-2023, 02:36 PM - Forum: Homework - Replies (3)

I'm working through a simple python tutorial and I don't know why I can't get enough point to finish the quiz.

My quiz is,

"

Comparing float ..... More

Print this item

  Correctly read a malformed CSV file data
Posted by: klllmmm - Jan-25-2023, 02:07 PM - Forum: General Coding Help - Replies (2)

I have a malformed CSV file where I need to create a proper dataframe.
[Image: s!An03iU493hAgnpxZ2rP2oUzB9BJNNw?e=djFMls]

I get a..... More


Attached Files

Thumbnail(s)
       

.csv   test_CSV_file.csv (Size: 415 bytes / Downloads: 262)
Print this item

  Virtual Environments - Organization (VS Code)
Posted by: JaysonWonder - Jan-25-2023, 01:51 PM - Forum: General Coding Help - Replies (11)

Hello All,

I have a few questions about organizing my virtual environments using VS code. My thought was to create a few venvs that would meet my nee..... More

Print this item

Question Running Python under Termux on Android tablet
Posted by: dfkettle - Jan-25-2023, 11:46 AM - Forum: General Coding Help - Replies (1)

Is anyone here running Python using the Termux app on an Android device? I'm able to compile and run Python scripts, and I've been able to install som..... More

Print this item

  python print all files which contain specific word in it
Posted by: mg24 - Jan-25-2023, 04:30 AM - Forum: General Coding Help - Replies (5)

Hi Team,

how to print all files which contains specific word in files.
how to concat source path and word to search for.


[python]
import glo..... More

Print this item

  NYU PYTHON CERTIFICATE
Posted by: MCL169 - Jan-25-2023, 04:09 AM - Forum: Jobs - No Replies

I am starting a new career in software development late in life and I am looking for the fastest track at least to get my foot in the door. I wanted t..... More

Print this item

  Finding combinations of list of items (30 or so)
Posted by: LynnS - Jan-25-2023, 03:59 AM - Forum: General Coding Help - Replies (1)

Hello, I'm having difficulty getting result running this:

[python]from itertools import combinations

input = ['R1:99','R2:111','R3:71','R4:18','..... More

Print this item

  Allure Report Generation
Posted by: rotemz - Jan-24-2023, 08:30 PM - Forum: General Coding Help - No Replies

Hello,
I installed the package allure-pytest via pip.
I executed a test and also specified the report dir: pytest --alluredir='[reports folder]' tes..... More

Print this item

  player just randomly teleporting to the edge of a platform in pygame
Posted by: BliepMonster - Jan-24-2023, 06:32 PM - Forum: Game Development - Replies (5)

[python]
import pygame

# Initialize pygame
pygame.init()

# Set the screen size and caption
screen = pygame.display.set_mode((800, 600))
pyga..... More

Print this item

  Pygame is treating blob_group as a surface, when I need it to treat it as a Sprite.
Posted by: Swagford - Jan-24-2023, 06:15 PM - Forum: Game Development - Replies (1)

Hey all, I'm following along a pygame tutorial for a platforming game and have been stuck on this for a while now. I made sure to do exactly as the tu..... More

Print this item

  QScrollArea does not work
Posted by: HeinKurz - Jan-24-2023, 05:23 PM - Forum: GUI - Replies (3)

Hi!
What's wrong with my code? QScrollArea is shown but scrolling doesn't work.

[python]
import sys
import datetime
import xml.etree.ElementTre..... More

Print this item

  Import XML file directly into Excel spreadsheet
Posted by: demdej - Jan-24-2023, 02:48 PM - Forum: General Coding Help - No Replies

I'm new to Python and despite how many hours/days I've spent on this, I'm loving my journey. Currently, I'm trying to import an XML file directly into..... More

Print this item

  Using pyobjc-framework-CoreServices
Posted by: Questor24 - Jan-24-2023, 02:42 PM - Forum: General Coding Help - Replies (1)

Trying to write a replacement for SetDefaultMailApp which implies LaunchServices but seems to be part of CoreServices now and I've installed the pytho..... More

Print this item

  Question about ImagePath.Path() in Pillow library
Posted by: dfkettle - Jan-24-2023, 01:35 PM - Forum: General Coding Help - Replies (1)

Hi!

I've been learning how to use the various packages and methods in the Pillow library (v9.4.0 under Python 3.7.9), but I have a question about t..... More

Print this item

  Not getting Info(Title)
Posted by: yrstruly - Jan-24-2023, 12:04 PM - Forum: Web Scraping & Web Development - Replies (1)

Im following a webscraping coure: https://www.linkedin.com/learning/web-sc...true&resum..... More

Print this item

  digest header generating issue
Posted by: alexander_pershin - Jan-24-2023, 10:05 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello,
I'm trying to generate digest header for the request similarly to JavaScript code from example, however python script produces different res..... More

Print this item

  How can I use python for data transformation instead of PowerQuery?
Posted by: KMark27 - Jan-24-2023, 08:43 AM - Forum: Data Science - Replies (1)

Hello Guys

I would like to ask a general theoretical question. We have right now a BI solution which uses excel files from sharepoint and the data ..... More

Print this item

  Finding the median of a column in a huge CSV file
Posted by: markagregory - Jan-24-2023, 06:31 AM - Forum: Data Science - Replies (5)

Copying the column from the CSV to a DataFrame causes RAM to run out -> 100 GB - yes it is a big file

I would appreciate some help to implement a s..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  ShanePulse 13 minutes ago OLanePulse OLanePulse General Codin...
  [Tkinter] Too much space ... 47 minutes ago RonR RonR GUI
  How Reliable Is Assignmen... 3 hours ago tobey12 tobey12 News and Disc...
  Expert Guidance Made Easy... 4 hours ago Alex12 Alex12 General Codin...
  Another app idea - intera... 8 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
Most views
  The best Prog... 575801
  Tutorial Requ... 497054
  Web Scraping ... 439813
  Newbie with P... 383507
  New Users Int... 365339
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+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
XenonBlack Today
tobey12 Today
Alex12 Today
Lenowell Today
luisshulez6883 Yesterday

User Panel Messages

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