Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: fast_map (parallel/concurrent map)
Post: fast_map (parallel/concurrent map)

I would like to share the "fast_map" package I wrote, and possibly ask for feedback. It uses multiple processes and threads to quickly complete IO and CPU expensive blocking tasks. https://github.com/...
michalmonday Code sharing 0 2,076 Dec-06-2021, 03:29 PM
    Thread: Marks calculator
Post: Marks calculator

Given a list of previously achieved marks it produces a graph showing what future marks you need to get in order to get specific total mark. https://github.com/michalmonday/marks.py Here's an example...
michalmonday Code sharing 0 2,347 May-30-2021, 04:40 PM
    Thread: call func from dict
Post: RE: call func from dict

foobar[command]()
michalmonday General Coding Help 3 2,864 Jun-20-2019, 05:59 PM
    Thread: Imported csv, column text converted to number but not summing
Post: RE: Imported csv, column text converted to number ...

Hi, could you upload the file?
michalmonday Data Science 4 2,908 Jun-20-2019, 05:42 PM
    Thread: gaussian quadrature
Post: RE: gaussian quadrature

https://stackoverflow.com/a/55674422/4620679 No idea if that's what you're looking for because I don't understand the concept/notation... Btw I suggested edit to the answer I linked but before it get...
michalmonday General Coding Help 4 4,109 Jun-18-2019, 04:06 PM
    Thread: Math problem in Python - pyqt5
Post: RE: Math problem in Python - pyqt5

Hi, you could use eval(string) Quote:>>> eval("1+2+3") 6 https://docs.python.org/3/library/functions.html#eval
michalmonday Homework 6 5,720 Jun-18-2019, 03:44 PM
    Thread: Aligning excel data
Post: RE: Aligning excel data

Did you accidentally post only part of the message?
michalmonday Data Science 1 2,216 Jun-17-2019, 07:05 PM
    Thread: Removing extra space
Post: RE: Removing extra space

Alternatively you could make use of the optional sep parameter of the print function: print(1,2,3, sep='---') print(1,2,3, sep='')Output:1---2---3 123
michalmonday Homework 4 2,842 Jun-07-2019, 05:23 PM
    Thread: xticks
Post: RE: xticks

Hi, if you take a look at the documentation of xticks it allows you to pass additional "labels" argument. from scipy import * from pylab import* import numpy as np from numpy import array import matp...
michalmonday Data Science 5 4,811 Jun-07-2019, 01:40 PM
    Thread: List Issue
Post: RE: List Issue

class check: payee = '' amount = 0.0 checkbook = [] #checkbook is a list c = check() c.payee = 'Bruce' c.amount = 37.95 checkbook.append(c) #add check to checkbook c = check() c.payee =...
michalmonday General Coding Help 3 2,654 Jun-06-2019, 10:42 PM
    Thread: Evaluate dataset with logistic regression
Post: RE: Evaluate dataset with logistic regression

I'll take a look at the dataset in a moment but in general, normally you'd have 2 separate datasets with their corresponding binary results (also referred to as "labels") 1. Training one (used to fit ...
michalmonday Data Science 6 3,610 Jun-06-2019, 02:51 PM
    Thread: Evaluate dataset with logistic regression
Post: RE: Evaluate dataset with logistic regression

Is it going to be possible to observe the seemingly way off results using this sample? Or would bigger sample be required? Btw isn't it making predictions on the same dataset that was used for traini...
michalmonday Data Science 6 3,610 Jun-06-2019, 02:35 PM
    Thread: Evaluate dataset with logistic regression
Post: RE: Evaluate dataset with logistic regression

Hi, could you provide the dataset?
michalmonday Data Science 6 3,610 Jun-06-2019, 02:17 PM
    Thread: sensor code that starts heater
Post: RE: sensor code that starts heater

So the DHT11 is the sensor you could use. That's it: [Image: https://i.imgur.com/2MShDqG.jpg] It has 3 metal pins. VCC, signal and GND. VCC and GND pins are used solely for powering the sensor. Sign...
michalmonday General Coding Help 3 3,144 Jun-05-2019, 10:54 AM
    Thread: Predicting an output variable with sklearn
Post: RE: Predicting an output variable with sklearn

Hi, could you upload the excel file please?
michalmonday Data Science 1 2,530 Jun-04-2019, 03:11 PM
    Thread: sensor code that starts heater
Post: RE: sensor code that starts heater

Hi, check this out: https://github.com/szazo/DHT11_Python As you can see in the example code, the "signal" pin is connected to pin 14 of raspberry pi. The DHT11 has 3 pins though, the GND pin should b...
michalmonday General Coding Help 3 3,144 Jun-04-2019, 02:36 PM
    Thread: Importing randon error
Post: RE: Importing randon error

random.randint requires 2 input arguments so that's what error indicates. Input arguments supposed to be 2 integers. But there's another issue, it returns single value. You could either use list compr...
michalmonday General Coding Help 1 5,634 Jun-03-2019, 09:49 PM
    Thread: output limited
Post: RE: output limited

It looks like this line was copied incorrectly, closing bracket is to early. loren41 Wrote:with pd.option_context('display.max_rows'), None, 'display.max_columns', None:
michalmonday Data Science 3 2,265 Jun-03-2019, 05:41 PM
    Thread: output limited
Post: RE: output limited

Hi, check this out: https://stackoverflow.com/a/30691921/4620679 tsvikas Wrote:with pd.option_context('display.max_rows', None, 'display.max_columns', None): # more options can be specified also ...
michalmonday Data Science 3 2,265 Jun-03-2019, 04:40 PM
    Thread: How does 'any' and 'all' work?
Post: RE: How does 'any' and 'all' work?

people = ['John', 'Feodor', 'Henry'] is_thirsty_states = [True, False, False] is_hungry_states = [True, True, True] is_drunk_states = [False, False, False] if any(is_thirsty_states): print('Someo...
michalmonday General Coding Help 3 2,318 Jun-02-2019, 12:19 PM

User Panel Messages

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