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,422
» Latest member: alexfox
» Forum threads: 38,830
» Forum posts: 176,078

Full Statistics

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

Latest Threads
Girls In Your Town - Anon...
Forum: General Coding Help
Last Post: lopezmason
35 minutes ago
» Replies: 0
» Views: 16
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
5 hours ago
» Replies: 5
» Views: 125
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 05:21 AM
» Replies: 3
» Views: 748
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 02:57 AM
» Replies: 8
» Views: 516
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 457
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 808
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,768
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 733
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,039
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,624

 
  Newbie question: how to generate dataframe and use multiple regression
Posted by: zydjohn - Dec-10-2017, 09:49 AM - Forum: Data Science - No Replies

Hello:
I have some code, which is not finished yet:
[python]
from scipy.stats import linregress

x0 = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
y = ..... More

Print this item

  Stack problem, repeating results that i dont want
Posted by: YapYL - Dec-10-2017, 08:24 AM - Forum: General Coding Help - Replies (1)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Transposing in Excel and converting to txt
Posted by: muhsin - Dec-10-2017, 07:52 AM - Forum: General Coding Help - Replies (2)

Hello;
I am a new user. I would like to automate a process that will save me a lot of time. In attached excel file I have some calculations of stress..... More


Attached Files

.xlsx   mean stress.xlsx (Size: 18.21 KB / Downloads: 604)
.txt   final output.txt (Size: 1.25 KB / Downloads: 629)
Print this item

  SOLVED: best way to block (wait on) shell calls to multiple windows programs at once?
Posted by: ezdev - Dec-10-2017, 06:42 AM - Forum: General Coding Help - No Replies

EDIT: turns out start (in windows) has a /wait option, which i can append to solve this. ive known start longer than ive known python, but i didnt kno..... More

Print this item

  The number of occurrences of statistical characters
Posted by: RobertW - Dec-10-2017, 05:58 AM - Forum: General Coding Help - Replies (3)

who can help me to resolve the question,thanks  Razz

[python]# -*- coding:utf-8 -*-
# python 3.x
import re

patter = [chr(i) for i in range..... More

Print this item

  script wanted: ping and wait
Posted by: Skaperen - Dec-10-2017, 05:16 AM - Forum: Bar - No Replies

the next script i want is a command that pings a specified host and waits until there are a specified number of good responses.  arguments/options to ..... More

Print this item

  FYI Pygame high cpu usage.
Posted by: Windspar - Dec-10-2017, 05:03 AM - Forum: Game Development - Replies (2)

It all depends what version of pygame you are using. I was using 1.9.3 whl.
I was getting 100% usage for a simple program.
This bug is known. [url=..... More

Print this item

  Limiting a Joystick value -1 to +1, to a value between 0 an 127 with 64 being center?
Posted by: japreja - Dec-10-2017, 04:00 AM - Forum: Game Development - Replies (2)

I am trying to limit a Joystick value, that ranges between -1.0 and +1.0, to a value between 0 and 127 with 64 being center. Any idea how to do this?..... More

Print this item

  Text Game Testing/Dev
Posted by: PKMindBlow - Dec-10-2017, 02:18 AM - Forum: Game Development - Replies (21)

Hey Guys!
I am PKMindBlow and I am currently working on a text game inspired by EarthBound and the Mother Series in general. It also uses some custom ..... More

Print this item

  Looking for offline BBCODE editor
Posted by: Larz60+ - Dec-09-2017, 11:08 PM - Forum: Bar - Replies (11)

I'd like to find an offline BBCODE editor, so that large textual based posts can be prepared offline.
[s]Preferably one that is stand alone, without ..... More

Print this item

  Newbie lambda question
Posted by: Truman - Dec-09-2017, 10:32 PM - Forum: General Coding Help - Replies (6)

I'm reading python tutorial and as an example of use of lambda there is this code:
[python]
pairs = [(1, 'one'), (2, 'two'), (3, 'three'), (4, 'four')..... More

Print this item

  Question about calling a function that calls a function
Posted by: Afterdarkreader - Dec-09-2017, 09:20 PM - Forum: Data Science - Replies (9)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  skeleton class needs working instantiation guard
Posted by: hereathome - Dec-09-2017, 09:12 PM - Forum: General Coding Help - Replies (3)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Tree insertion and variable referencing
Posted by: hshivaraj - Dec-09-2017, 08:58 PM - Forum: General Coding Help - Replies (3)

Hey all!
This is probably very basic for some people , but i really cant get my head around this.

The code below performs binary tree insertion...... More

Print this item

  Trouble with creating a looping function in python 2.7 (complex)
Posted by: Afterdarkreader - Dec-09-2017, 07:44 PM - Forum: Data Science - Replies (3)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Newbie question on how to use pandas.rolling_mean
Posted by: zydjohn - Dec-09-2017, 07:29 PM - Forum: Data Science - Replies (5)

import pandas as pd

data = [1.0, 2.0, 3.0, 4.0]
rollmean_data_2 = pd.rolling_mean(data, 2)
print(rollmean_data_2)
I want to l..... More

Print this item

  pyqt clickable pushbutton problem
Posted by: pythonck - Dec-09-2017, 06:44 PM - Forum: GUI - Replies (1)

When the pushbutton in my program is clicked it runs a function which should produce another pushbutton. The function runs as evidenced by the "clicke..... More

Print this item

  sound with python
Posted by: yop - Dec-09-2017, 06:23 PM - Forum: Homework - Replies (6)

Hello everyone !

First of all, sorry for my english level, It's not my native language.

For my assignment I need to be able to play a WAV or a M..... More

Print this item

  Runtime error when trying to graph using the lognorm function (2.7)
Posted by: Afterdarkreader - Dec-09-2017, 05:45 PM - Forum: Data Science - Replies (3)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  How to exit 2 loops
Posted by: Midnight1810 - Dec-09-2017, 05:38 PM - Forum: General Coding Help - Replies (3)

[python]for maybe in answer:
    for correct in sequence:
        if correct = maybe:
            right.append("correct")
            break
     ..... More

Print this item

  [NOTICE] subscriptions reset
Posted by: metulburr - Dec-09-2017, 04:55 PM - Forum: Board - No Replies

We were having an issue with the forum emailer for the past month or so, not sending emails randomly. Possibly being due to the fact of maxed out on e..... More

Print this item

  Problem while creating an Excel File using python
Posted by: Math_Enthusiast - Dec-09-2017, 04:34 PM - Forum: General Coding Help - Replies (3)

Hi,

I have written a small python code for creating an excel file with 2 columns.But,after running the code, My data in the CSV File appears to be ..... More

Print this item

  Using Enthought Canopy and Installing Python3
Posted by: marcomx - Dec-09-2017, 03:23 PM - Forum: News and Discussions - No Replies

Hi,
I'm on os x with Python 2.7 in usr/local/bin (Terminal bash: >>>which python) but have also Enthought Canopy installed (path follows), where I ha..... More

Print this item

  Newbie question for using map, lambda
Posted by: zydjohn - Dec-09-2017, 12:37 PM - Forum: Data Science - Replies (2)

Hello:
I have learned Python for a few days only, so have quite some questions. The following question(s) I want to ask is about the code translation..... More

Print this item

  Why can't I import seaborn module?
Posted by: Athenaeum - Dec-09-2017, 08:34 AM - Forum: Data Science - Replies (1)

I would like to post error output here, but I don't know how to copy text from Python to clipboard so that I can paste into clipboard. I googled how ..... More

Print this item

  Stop getting personal message everytinme someone replies to a thread
Posted by: Windspar - Dec-09-2017, 01:04 AM - Forum: Board - Replies (2)

How can I stop receiving personal messages every time someone replies to a thread ? Wall

Print this item

  Issue with new users not getting approved for membership?
Posted by: Drone4four - Dec-08-2017, 11:39 PM - Forum: Board - Replies (6)

My good friend IRL attempted to create a user account yesterday. He's been waiting and waiting for his new account to be approved. Dear Mods: Any po..... More

Print this item

  Python and Machine Learning - (Portuguese)
Posted by: rtadewald - Dec-08-2017, 11:37 PM - Forum: Bar - Replies (1)

Pessoal, gostaria de divulgar curso completo sobre o assunto que lancei há pouco tempo na Udemy.

Python para Data Science e Machine Learning..... More

Print this item

  Attribute errors, and outputting
Posted by: johnnyaustin - Dec-08-2017, 11:27 PM - Forum: General Coding Help - Replies (3)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Using break to exit a loop help
Posted by: JJG - Dec-08-2017, 10:49 PM - Forum: General Coding Help - Replies (4)

Hi all, I'm having a problem trying to run this program. I was messing around with a similar program I tried to create and it would not work. So i too..... More

Print this item

  keypress isnt working need help
Posted by: jakegold98 - Dec-08-2017, 10:13 PM - Forum: Game Development - Replies (1)

DELETE THIS THREAD PLEASE I SOLVED THE ISSUE MY OWN EASY MISTAKE

For some reason the spaceship only moves when I press L or R arrow keys but they sho..... More


Attached Files

Thumbnail(s)
   
Print this item

  URL via raw_input, passed to HTTP requests and output?
Posted by: johnnyaustin - Dec-08-2017, 08:20 PM - Forum: General Coding Help - Replies (1)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Beginning PyGame question about "self"
Posted by: jakegold98 - Dec-08-2017, 07:48 PM - Forum: Game Development - Replies (2)

Hello I am not sure how to really question my question if that makes sense. I am following metulburr's pygame tutorial and something I don't really un..... More

Print this item

  Creating a Login System Using Python- HELP
Posted by: tesilstudent112 - Dec-08-2017, 07:17 PM - Forum: General Coding Help - No Replies

Hey everyone. I am trying to create a login system for a user in python- this is my code so far(bare in mind i'm basically a beginner so if you could ..... More

Print this item

  Why is my gradient descent algorithm requiring such a small alpha?
Posted by: JoeB - Dec-08-2017, 05:09 PM - Forum: Data Science - Replies (1)

I am trying to implement a gradient descent algorithm for linear regression. I am using the attached data. My algorithm is shown below:

[python]
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Girls In Your Town - Anon... 35 minutes ago lopezmason lopezmason General Codin...
  If I open a file write or... 5 hours ago Pedroski55 bowlofred General Codin...
  a function to watch files Yesterday, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... Yesterday, 02:57 arbiel Pedroski55 General Codin...
  Exponential Number Conver... 01-09, 20:47 Tuurbo46 DeaD_EyE General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
Most views
  The best Prog... 580747
  Tutorial Requ... 522319
  Web Scraping ... 442918
  New Users Int... 388159
  Newbie with P... 387140
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+ 12117
buran 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
alexfox Yesterday
zalexisshulzeo8879 Yesterday
SUMIATI Yesterday
starboy25 Yesterday
zabenjamitop8877 01-10

User Panel Messages

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