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,307
» Latest member: novaCharger99
» Forum threads: 38,801
» Forum posts: 175,903

Full Statistics

Online Users
There are currently 44 online users.
» 1 Member(s) | 32 Guest(s)
Bing, Google, DuckDuckGo, Facebook, AOL, Mojeek, Axel_Erfurt

Latest Threads
Electric Car battery size...
Forum: General Coding Help
Last Post: novaCharger99
19 minutes ago
» Replies: 3
» Views: 2,996
Python is not working on ...
Forum: General Coding Help
Last Post: lary_p
1 hour ago
» Replies: 0
» Views: 9
How I Turned a Crypto Nig...
Forum: General Coding Help
Last Post: rebeccamorris
1 hour ago
» Replies: 0
» Views: 15
Earnestinome
Forum: General Coding Help
Last Post: Dichaelmag
2 hours ago
» Replies: 0
» Views: 18
What role does IoT play i...
Forum: General Coding Help
Last Post: ShaneCorn
3 hours ago
» Replies: 0
» Views: 13
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ShaneCorn
3 hours ago
» Replies: 7
» Views: 7,778
Enhancing Python Learning...
Forum: General Coding Help
Last Post: slicemasternet
4 hours ago
» Replies: 0
» Views: 20
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
10 hours ago
» Replies: 7
» Views: 613
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 09:58 PM
» Replies: 3
» Views: 108
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 03:53 PM
» Replies: 1
» Views: 85

 
  Dashboards with html tables
Posted by: fstefanov - May-08-2019, 02:31 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello folks,

We are going to deprecate our Confluence instance soon.
I was using a Python script to append HTML table,
with static links to S3 ar..... More

Print this item

  integer +-* interval
Posted by: mcgrim - May-07-2019, 09:33 PM - Forum: Homework - Replies (2)

this changed version of my previous code should be able to sum, subtract and multiply
an interval with an integer or float, and the result should be ..... More

Print this item

  How to add a dataframe to an existing excel file
Posted by: wendysling - May-07-2019, 08:50 PM - Forum: Data Science - Replies (2)

Hello,

I am trying to add a dataframe to an existing sheet. I don't see any error, but the data does not show on the sheet.

Is anyone able to tell ..... More

Print this item

  Getting error message for indentation
Posted by: Shafla - May-07-2019, 08:07 PM - Forum: General Coding Help - Replies (5)

HI

i am getting an error for incorrect indentation but can not find the error.
[python]##30/04/19
##
##increment attributes through method

c..... More

Print this item

  missing 1 required positional argument
Posted by: mcgrim - May-07-2019, 08:00 PM - Forum: Homework - Replies (10)

given this code, I should extend
the class so that it can be initialized with only one real value.

for instance,
print(interval(1))
should prin..... More

Print this item

  War game
Posted by: Irhcsa - May-07-2019, 04:38 PM - Forum: General Coding Help - Replies (5)

Trying to finish my game of war card game. I am currently on the final step and need to have it keep score.

Can someone please guide me on how to c..... More

Print this item

  error with requests
Posted by: rudolphyaber - May-07-2019, 03:19 PM - Forum: Web Scraping & Web Development - Replies (9)

Trying to login using requests but I'm getting html returned that appears to be an error page.

Python:
[python]import requests

with requests.Se..... More

Print this item

  need some help with loops
Posted by: s138733 - May-07-2019, 03:00 PM - Forum: General Coding Help - Replies (2)

i am trying to use while loops and if statements to make a text based battle sim in python but i cant figure out how to use the while loops with multi..... More

Print this item

  Truncated email attachments on Ubuntu 16 (Xenial)
Posted by: morphex - May-07-2019, 02:15 PM - Forum: General Coding Help - Replies (1)

Hi.

I was installing

https://github.com/morphex/surveil

On a computer with Ubuntu 16, and found that the attachments on emails sent, were all..... More

Print this item

  predicting values at point in time
Posted by: mk1216 - May-07-2019, 01:52 PM - Forum: Data Science - Replies (1)

Hi, I have a requirement to forecast certain values point-in-time into the future based on historic data.

Sample data set:
date_time ,no_o..... More

Print this item

  Execute a .pyc
Posted by: Serferi - May-07-2019, 12:44 PM - Forum: General Coding Help - Replies (1)

Hello i try to execute a pyc file with this

execfile("Perecastor.pyc")
then I get this:
SyntaxError: Non-ASCII character '\xf3' in ..... More

Print this item

  getting a word from a list
Posted by: sheck33332 - May-07-2019, 12:32 PM - Forum: Homework - Replies (2)

I have to get a word which contains the longest word containing "e" from a list. how would I go about this a main function has not been provided. this..... More

Print this item

  complex numbers
Posted by: mcgrim - May-07-2019, 12:27 PM - Forum: Data Science - Replies (3)

I am trying to come up with methods for addition and subtraction of complex numbers,

so that the print statement should generate something like
1+..... More

Print this item

  for question
Posted by: turex - May-07-2019, 12:02 PM - Forum: General Coding Help - Replies (1)

Hello guys, i have a noob question. Could you help me please ?

I would like to do when i press + key, my values should change respectively ? Tha..... More

Print this item

  should I close csv file?
Posted by: go127a - May-07-2019, 11:22 AM - Forum: General Coding Help - Replies (8)

I have a csv file I made some calculation with code function on it. and requesting output is okay write now.

my question is:
should I write the c..... More

Print this item

  list
Posted by: ravioli2929 - May-07-2019, 10:41 AM - Forum: Homework - Replies (3)

Define the get_funny_average() function which is passed a list of numbers as a parameter and returns the average of some of the numbers in the paramet..... More

Print this item

  mathplotlib savefig FileNotFoundError
Posted by: drinkOut - May-07-2019, 09:54 AM - Forum: Data Science - Replies (3)

Hi!

I've made a figure using matplotlib and now I'm trying to save it to file using matplotlib.pyplot.savefig
[python]import matplotlib.pyplot as ..... More

Print this item

  first code - need some explaining of logic
Posted by: korenron - May-07-2019, 08:51 AM - Forum: General Coding Help - Replies (11)

Hello,
I wrote a code that send UDP,print to terminal \ save to log file whenever I press a button on PI,
and when I press ENTER in the terminal it e..... More

Print this item

  I cannot display object lists
Posted by: Karaca - May-07-2019, 08:13 AM - Forum: General Coding Help - Replies (2)



when I try to view the staff list.

eror:<<<<<< <__main__.Çalışan object at 0x0000000002D92550> <<<<<..... More

Print this item

  scipy curve_fit for multiple independent variables
Posted by: Jay_Nerella - May-07-2019, 08:07 AM - Forum: Data Science - Replies (1)

Hello

I have been trying to fit my data to a custom equation. I have tried with scipy curve_fit and I have two independent variables x and y . ..... More

Print this item

  Regex Pattern
Posted by: NewBeie - May-07-2019, 07:44 AM - Forum: General Coding Help - Replies (5)

Hi,

I have two patterns in my code, one to remove the first part of the string which is just garbage, the second is to remove extra newlines in the..... More

Print this item

  Find index of missing number
Posted by: parthi1705 - May-07-2019, 04:26 AM - Forum: General Coding Help - Replies (3)

Find missing number position / index based on the input

Here is the sample data.

[python]def missing_numbers(num_list):
original_list = ..... More

Print this item

  Write pseudo code for a class assignment
Posted by: Scrimshot - May-07-2019, 03:01 AM - Forum: Homework - Replies (3)

Here is the assignment word for word. Any help in writing this or just giving me some clues to move me along would be appreciated.


Based on a lotter..... More

Print this item

  How to obtain the result from the unstandardised training dataset
Posted by: vokoyo - May-07-2019, 12:46 AM - Forum: Homework - No Replies




May I know how to modify my Python programming thus I will be able to obtain the same result as refer to the image file?





[pyth..... More


Attached Files

.pdf   Principal Component Analysis.pdf (Size: 179.82 KB / Downloads: 480)
Print this item

  division error
Posted by: mcgrim - May-06-2019, 09:25 PM - Forum: Data Science - Replies (8)

The following code

[python]
class interval:
def __init__(self,left,right):
self.right=right
self.left=left
def __add_..... More

Print this item

  TypeError: expected string or bytes-like object
Posted by: twinpiques - May-06-2019, 08:19 PM - Forum: Data Science - Replies (1)

Hi all. I'm trying run the following code and I keep getting the "TypeError: expected string or bytes-like object" error:

[python]

df_sar['sar_..... More

Print this item

  '>' not supported between instances of 'str' and 'int'
Posted by: graham23s - May-06-2019, 07:51 PM - Forum: General Coding Help - Replies (2)

Hi Guys,

I am trying to upload an image to my server using Python:

Function:

[python]def upload_image(image_location, image_name_only)..... More

Print this item

  Reference new dictionary keys with a variable
Posted by: slouw - May-06-2019, 07:17 PM - Forum: General Coding Help - Replies (4)

I want to read text files with parameters and assignments in order to configure a new device.
It seemed correct to read variables and their assignmen..... More

Print this item

  Step through a really large CSV file incrementally in Python
Posted by: bluethundr - May-06-2019, 06:43 PM - Forum: General Coding Help - Replies (6)

I am trying to speed up loading a large CSV file into a MySQL database. I'm using this code it takes about 4 hours to load a 4GB file with millions of..... More

Print this item

  display confusion
Posted by: anfaenger - May-06-2019, 06:39 PM - Forum: GUI - Replies (2)

I simply cannot get the result displayed from the code below. Where do I go wrong?


[python]from tkinter import*

def kalkuliere():
result..... More

Print this item

  I need help using Python to generate usernames and passwords with excel documents
Posted by: Jannejannesson - May-06-2019, 05:49 PM - Forum: General Coding Help - Replies (3)

Hey guys, I need some serious help and guidance with creating a script. I realize I'm well over my head here but I still feel somehow I'm on the verge..... More

Print this item

  Insert into sublist if sublist is not having same no of records.
Posted by: parthi1705 - May-06-2019, 05:09 PM - Forum: General Coding Help - Replies (10)

Having huge no of records in original requirement.
Here a small peace of sample data.

[python]results = [
(Decimal('28000.0000'), 2010, 272)..... More

Print this item

  Derivative operation
Posted by: therealpaulie - May-06-2019, 02:49 PM - Forum: General Coding Help - Replies (2)

[python]print('Now you are creating your function, when finished type Break')

def f(x):
total=0
a=0
b=0
while a!='Break' or b!=..... More

Print this item

  Copy File with Varied Name
Posted by: LonghornJ - May-06-2019, 02:46 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm a newbie and trying to learn the language. I'm trying to run a script to copy an Excel file that is downloaded to my Dropbox folder each da..... More

Print this item

  Plot Line chart based on the input
Posted by: parthi1705 - May-06-2019, 02:32 PM - Forum: Data Science - Replies (4)

Having set of unknow data , need to plot Line chart based on three params
Example
[python]Salesamount = [[28000.00,308000.00,582000.0..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Electric Car battery size... 19 minutes ago ridgerunnersjw novaCharger99 General Codin...
  Python is not working on ... 1 hour ago lary_p lary_p General Codin...
  How I Turned a Crypto Nig... 1 hour ago rebeccamorris rebeccamorris General Codin...
  Earnestinome 2 hours ago Dichaelmag Dichaelmag General Codin...
  What role does IoT play i... 3 hours ago ShaneCorn ShaneCorn General Codin...
  Can I develop a live vide... 3 hours ago mtrkhan ShaneCorn Web Scraping ...
  Enhancing Python Learning... 4 hours ago slicemasternet slicemasternet General Codin...
  Help with Serial.write in... 10 hours ago racingsubby racingsubby General Codin...
  silent deployment Python ... Yesterday, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP Yesterday, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... Yesterday, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579389
  Tutorial Requ... 512446
  Web Scraping ... 442300
  Newbie with P... 386352
  New Users Int... 380414
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+ 12111
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
novaCharger99 Today
rebeccamorris Today
cruisesfares Today
Dichaelmag Today
ShaneCorn Today

User Panel Messages

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