Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Variable not defined even though it is
Post: RE: Variable not defined even though it is
you should be able to right click code, select python, and run in terminal
first you need to (one time) press ctrl-P in code window and select interpreter to be used. |
|
Larz60+ |
General Coding Help |
3 |
120 |
Yesterday, 02:13 PM |
|
|
Thread: tkinter logo
Post: RE: tkinter logo
I don't I've ever seen one, it's a wrapper around TCL/Tk who's logo is a feather see here. |
|
Larz60+ |
Bar |
3 |
103 |
Mar-27-2024, 10:12 AM |
|
|
Thread: Stock clustering and portfolio diversification. Suitable features.
Post: RE: Stock clustering and portfolio diversification...
The yahoo finance package will get you the historic information you need
reference: https://pypi.org/project/yfinance/
simple code to get one years data:
import yfinance as yf
import pandas as pd
fr... |
|
Larz60+ |
Data Science |
1 |
81 |
Mar-27-2024, 09:54 AM |
|
|
Thread: delivery exe without source code py
Post: RE: delivery exe without source code py
This post on stackoverflow shows methods for all major OS. |
|
Larz60+ |
General Coding Help |
1 |
160 |
Mar-25-2024, 08:35 PM |
|
|
Thread: Can't load plugin: sqlalchemy.dialects:postgresql
Post: RE: Can't load plugin: sqlalchemy.dialects:postgre...
change line 4 which currently directs sqlalchemy to PostgreSQL |
|
Larz60+ |
Homework |
2 |
120 |
Mar-25-2024, 08:28 PM |
|
|
Thread: Detecting Solar Radio Burst Using Python
Post: RE: Detecting Solar Radio Burst Using Python
see what's available in PyPi, here. |
|
Larz60+ |
Game Development |
2 |
185 |
Mar-21-2024, 10:23 AM |
|
|
Thread: Pivoting the data does not return what I am expecting
Post: RE: Pivoting the data does not return what I am ex...
Please post your code (best shot, not working properly ok but explain where failures occurs).
Then you will most likely get the answers you are seeking. |
|
Larz60+ |
Homework |
2 |
188 |
Mar-21-2024, 10:21 AM |
|
|
Thread: Python Security
Post: RE: Python Security
suggest you start by reading the following:
Python Security
and
Security Considerations |
|
Larz60+ |
General Coding Help |
1 |
224 |
Mar-06-2024, 08:24 PM |
|
|
Thread: Saving a manytomany form
Post: RE: Saving a manytomany form
Line 7 'Article' never defined
The error is for 'Article' not 'articles' not case and plural, not singular. |
|
Larz60+ |
General Coding Help |
2 |
263 |
Mar-04-2024, 12:02 PM |
|
|
Thread: Organization of project directories
Post: RE: Organization of project directories
FYI: I never start a bona fide project without first creating a virtual environment.
One of the main reasons is that each project can have it's own version of python.
There are many other benefits, s... |
|
Larz60+ |
General Coding Help |
3 |
364 |
Mar-02-2024, 03:34 PM |
|
|
Thread: Malicious PyPI Packages Slip WhiteSnake InfoStealer Malware onto Windows Machines
Post: RE: Malicious PyPI Packages Slip WhiteSnake InfoSt...
This is important to know!
Everyone should check their repositories for any of the offending packages.
pip list | sort Linux, or similar on other OS, can be used to compare against the list on Hacker ... |
|
Larz60+ |
News and Discussions |
3 |
529 |
Jan-30-2024, 11:56 AM |
|
|
Thread: Produce One file Per PurchaseOrder
Post: RE: Produce One file Per PurchaseOrder
this can be done quite easily with pandas.
see:
pandas.read_sql
pandas.DataFrame.to_csv
Working with text data
Note CSV is comma separated text file. |
|
Larz60+ |
General Coding Help |
1 |
293 |
Jan-26-2024, 11:38 AM |
|
|
Thread: Apache Module
Post: RE: Apache Module
you might want to look here: https://pypi.org/search/?q=web |
|
Larz60+ |
Web Scraping & Web Development |
2 |
461 |
Jan-26-2024, 11:25 AM |
|
|
Thread: Converting .txt to .csv file
Post: RE: Converting .txt to .csv file
how about:
>>> import csv
>>> fauxfile = [ 'mary had\ta little\tlamb', 'Its Fleece was\twhite as snow']
>>> for n, item in enumerate(fauxfile):
... fauxfile[n] = item.re... |
|
Larz60+ |
General Coding Help |
21 |
11,722 |
Jan-20-2024, 10:03 AM |
|
|
Thread: SendKeys not working
Post: RE: SendKeys not working
where is your keys class? what did you define there?
see docs |
|
Larz60+ |
General Coding Help |
4 |
403 |
Jan-16-2024, 11:12 AM |
|
|
Thread: Stuck with using lists to solve task
Post: RE: Stuck with using lists to solve task
this is much easier if you define a function:
example:
# zero = open, 1 = close
doors = [1] * 100 # assumption all doors closed at start ... change to 0 if all open
def change_door(door_list, ... |
|
Larz60+ |
Homework |
9 |
749 |
Jan-15-2024, 11:46 AM |
|
|
Thread: Python code to set column width
Post: RE: Python code to set column width
you can set max column width with set_options and also set precision for floats, much more. |
|
Larz60+ |
General Coding Help |
11 |
947 |
Jan-14-2024, 04:47 AM |
|
|
Thread: If statement question help
Post: RE: If statement question help
deanhystad Wrote:guard will always be True if you type anything for input("True or false the guard is present on the gate")Correct. didn't pay attention to input statement.
Normally a boolean value i... |
|
Larz60+ |
Homework |
4 |
606 |
Jan-09-2024, 09:31 AM |
|
|
Thread: If statement question help
Post: RE: If statement question help
place the parenthesis around the complex condition like if (daytime < 7 or daytime > 17) and guard:
note: you don't need guard == True, as the condition will be true without. |
|
Larz60+ |
Homework |
4 |
606 |
Jan-08-2024, 07:34 PM |
|
|
Thread: Compare folder A and subfolder B and display files that are in folder A but not in su
Post: RE: Compare folder A and subfolder B and display f...
for getting list of files, use pathlib instead of os:
from pathlib import Path
home = Path(".")
base = home / "Folder-Oana"
folder1 = base / "extracted"
folder2 = base / "translated"
def get_folde... |
|
Larz60+ |
General Coding Help |
3 |
466 |
Jan-05-2024, 01:07 PM |