Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: The program isn't counting the total properly
Post: RE: The program isn't counting the total properly
It hurts my eyes reading your code, but here you have it:
Line 82: total = num1 + num2 - as a sum of cards from previous draws
Line 99: total = total + xnum - increment total each time you draw new c... |
|
mrdominikku |
General Coding Help |
1 |
1,747 |
Jul-09-2020, 04:51 PM |
|
|
Thread: Searching through Nested Dictionaries and Lists
Post: RE: Searching through Nested Dictionaries and List...
You where almost there, but yours isinstance conditions will never be True because key error is string not a dict
Try that:
srch = 'unitaryAuthArea'
def nested_extract(nested_sites, key):
for ... |
|
mrdominikku |
General Coding Help |
1 |
7,614 |
Jul-09-2020, 03:36 PM |
|
|
Thread: Monitor specific line of code from website
Post: RE: Monitor specific line of code from website
I would use BeautifulSoup from bs4 package, I would test it on my machine if it's works but I don't have source page.
pip install bs4
from bs4 import BeautifulSoup
from bs4 import BeautifulSoup
sou... |
|
mrdominikku |
General Coding Help |
1 |
1,847 |
Jul-09-2020, 03:20 PM |
|
|
Thread: How to pass multiple arguments into function
Post: RE: How to pass multiple arguments into function
Remove self from your code or
import logging
import pandas as pd
class MyData:
def __init__(self):
self.mode = None
self.colNames = []
def read_data(self, inFile, colName... |
|
mrdominikku |
General Coding Help |
4 |
2,451 |
Jul-09-2020, 02:58 PM |
|
|
Thread: How to pass multiple arguments into function
Post: RE: How to pass multiple arguments into function
You defined function with 3 parameter, you passed only 2
EDIT: self reserved for class instance |
|
mrdominikku |
General Coding Help |
4 |
2,451 |
Jul-09-2020, 02:30 PM |
|
|
Thread: pandas read_csv can't handle missing data
Post: pandas read_csv can't handle missing data
I am trying to download data from football data
import os
import pandas as pd
GAMES = ['E0', 'E1', 'E2', 'E3']
def download_statistics():
for year in range(2003, 2020):
year_format = ... |
|
mrdominikku |
Data Science |
0 |
2,505 |
Jul-09-2020, 12:26 PM |
|
|
Thread: SQL Alchemy dynamic class - declarative_base losing attributes
Post: RE: SQL Alchemy dynamic class - declarative_base l...
SQL Alchemy team found problem. BASE._dec_class_registry losing attributes due to multithreading. As a solution for that I create global DYNAMIC_CLASS and store all _ = type(class_name, (BASE,), param... |
|
mrdominikku |
General Coding Help |
4 |
3,734 |
Jan-10-2020, 06:46 PM |
|
|
Thread: SQL Alchemy dynamic class - declarative_base losing attributes
Post: RE: SQL Alchemy dynamic class - declarative_base l...
@LeanbridgeTech
Thanks for that! We are looking at this with SQL ALchemy team to resolve that. Once we find solution will post it here! |
|
mrdominikku |
General Coding Help |
4 |
3,734 |
Jan-07-2020, 08:57 AM |
|
|
Thread: SQL Alchemy dynamic class - declarative_base losing attributes
Post: SQL Alchemy dynamic class - declarative_base losin...
Hi,
Based on below posts
- dynamic-schema
- Dynamic Class Creation in SQLAlchemy
I wanted to make similar thing in my project. I use declarative_base class for core ORM models stored in db_models.py... |
|
mrdominikku |
General Coding Help |
4 |
3,734 |
Jan-06-2020, 05:02 PM |
|
|
Thread: requests post/get to HTML form
Post: requests post/get to HTML form
Hey there,
I have application which pulls lottery numbers from official website of lottery.
Website allows search previous lottery games by it's date.
I have tried it by using requests module but a... |
|
mrdominikku |
Web Scraping & Web Development |
1 |
2,332 |
Nov-03-2019, 06:48 AM |
|
|
Thread: PyQt Threading & Class handling
Post: RE: PyQt Threading & Class handling
Found solution..
The signal was emitted but the value that is emitted is always almost zero as:
0 < worker.emit(my_list.index(a)/len(my_list)) < 1, where len(my_list) = 11, so 1/11 = 0.09
Add... |
|
mrdominikku |
GUI |
8 |
11,892 |
Mar-10-2019, 09:14 PM |
|
|
Thread: PyQt Threading & Class handling
Post: RE: PyQt Threading & Class handling
(Mar-10-2019, 03:12 PM)Alfalfa Wrote: But I don't get what you are trying to do; signals are meant to be emitted from within the thread, so why would you want to call it from outside? Instead you ca... |
|
mrdominikku |
GUI |
8 |
11,892 |
Mar-10-2019, 03:56 PM |
|
|
Thread: PyQt Threading & Class handling
Post: RE: PyQt Threading & Class handling
(Mar-04-2019, 11:28 AM)Alfalfa Wrote: (Mar-04-2019, 05:50 AM)mrdominikku Wrote: @Alfalfa, thanks for response, 1st and 3rd applied, but still can't make 2nd work. It doesn't crash program or anyth... |
|
mrdominikku |
GUI |
8 |
11,892 |
Mar-10-2019, 01:50 PM |
|
|
Thread: PyQt Threading & Class handling
Post: RE: PyQt Threading & Class handling
@Alfalfa, thanks for response, 1st and 3rd applied, but still can't make 2nd work. It doesn't crash program or anything, but either emit signal or call class procedure don't update progress bar :( I a... |
|
mrdominikku |
GUI |
8 |
11,892 |
Mar-04-2019, 05:50 AM |
|
|
Thread: PyQt Threading & Class handling
Post: PyQt Threading & Class handling
Hello there,
I am working on the small project in which I need to process data based on input numbers. Here is the code and questions below:
import sys
import convert
import db_analysis
from PyQt5.Q... |
|
mrdominikku |
GUI |
8 |
11,892 |
Mar-02-2019, 06:02 PM |