Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to vectorize a calculation
Post: RE: How to vectorize a calculation

(Feb-03-2022, 08:01 AM)Gribouillis Wrote: What about b /= infl.prod(axis=1) Works like a charm, many thanks!! **smile**
Tuxedo General Coding Help 2 1,287 Feb-03-2022, 06:53 PM
    Thread: How to vectorize a calculation
Post: How to vectorize a calculation

I have a 1D array containing ending values of a financial computation that has n elements and a matrix of inflation factors that has n rows and w columns. I'd like to divide each member of the 1D arr...
Tuxedo General Coding Help 2 1,287 Feb-03-2022, 01:14 AM
    Thread: trouble installing python package
Post: trouble installing python package

Trying to install pyportfolioopt but got errors. Can anyone suggest what I should do? Output:(base) xxx@xxx-Satellite-P55-A:~$ pip install pyportfolioopt Collecting pyportfolioopt Using cached htt...
Tuxedo Data Science 1 3,223 Apr-07-2021, 01:58 AM
    Thread: Undesired space after using \n in print
Post: RE: Undesired space after using \n in print

Thanks! I figured it must be something simple. I've tried several internet searches but never could figure out the right wording of the search.
Tuxedo General Coding Help 4 2,780 Mar-03-2021, 09:55 PM
    Thread: Undesired space after using \n in print
Post: Undesired space after using \n in print

This has been bugging me for a long time. The output has the first line shifted one space to the right. How to avoid the extra space? x =[1, 2, 3] print('\n',x) print(x)Output: [1, 2, 3] [1, 2, 3...
Tuxedo General Coding Help 4 2,780 Mar-03-2021, 09:48 PM
    Thread: Efficient method to find phrase in string
Post: RE: Efficient method to find phrase in string

I actually have 6k transactions over a 5 year period. What I did was clean up each line of text then tokenize. I wrote the cleaned up lines to a csv file as well as the tokenized list (1700 unique i...
Tuxedo Data Science 6 3,000 Feb-25-2021, 07:23 PM
    Thread: Efficient method to find phrase in string
Post: RE: Efficient method to find phrase in string

Ah, I think I understand now. Your suggestion is to tokenize the words in the description field to get a handle on how big the keyword/phrase list needs to be.
Tuxedo Data Science 6 3,000 Feb-24-2021, 07:03 PM
    Thread: Efficient method to find phrase in string
Post: RE: Efficient method to find phrase in string

Hmmm, interesting idea. If I understand correctly, using my simple example of American, the tree node might have two branches, Air or Express. Or LUMBER might have two branches, LUMBER and PLUMBER. ...
Tuxedo Data Science 6 3,000 Feb-23-2021, 06:24 PM
    Thread: Efficient method to find phrase in string
Post: Efficient method to find phrase in string

I'm creating an application to automatically categorize personal financial transactions based on the description (I know some institutions do that already but not any of the ones I use). My thought o...
Tuxedo Data Science 6 3,000 Feb-22-2021, 10:13 PM
    Thread: Gaussian Curve Fit using Scipy ODR
Post: RE: Gaussian Curve Fit using Scipy ODR

Looks like your GaussModelConstant function may not be properly defined. According to the scipy odr documentation (https://docs.scipy.org/doc/scipy/reference/odr.html) the fitting function has the fo...
Tuxedo Data Science 1 3,850 Feb-19-2021, 10:24 PM
    Thread: Help with SQLITE DB
Post: RE: Help with SQLITE DB

Wow, I have so much to learn. Thanks!
Tuxedo Data Science 5 2,393 Feb-18-2021, 08:40 PM
    Thread: Help with SQLITE DB
Post: RE: Help with SQLITE DB

Hmmm, I'll try both. Thanks!
Tuxedo Data Science 5 2,393 Feb-18-2021, 07:43 PM
    Thread: Help with SQLITE DB
Post: Help with SQLITE DB

I have a two part question. I've created a DB via SQLITE containing personal financial transactions consisting of transaction date, amount, description, and an assigned category (e.g. food, clothing,...
Tuxedo Data Science 5 2,393 Feb-18-2021, 07:28 PM
    Thread: Way to avoid repetition?
Post: RE: Way to avoid repetition?

Nice, thanks!!
Tuxedo General Coding Help 5 2,852 Feb-16-2021, 08:02 PM
    Thread: Practical Use of Personal DB
Post: Practical Use of Personal DB

I love using software technology but want to do more than just 'play'. I'd like to engage in a database project but am short on ideas. Can anyone suggest practical uses for a personal database?
Tuxedo News and Discussions 3 2,640 Feb-15-2021, 05:36 PM
    Thread: Way to avoid repetition?
Post: RE: Way to avoid repetition?

(Feb-14-2021, 10:22 PM)deanhystad Wrote: That is a lot shorter, but it is also harder to read. What the heck is "x"? I have to read the code to find where x is defined and remember that x is the "...
Tuxedo General Coding Help 5 2,852 Feb-15-2021, 05:28 PM
    Thread: Way to avoid repetition?
Post: Way to avoid repetition?

I'm playing around right now with sqlite and was wondering if there is some mechanism within Python to avoid repeated use of 'my_cursor' in the below snippet: import sqlite3 conn = sqlite3.connect('e...
Tuxedo General Coding Help 5 2,852 Feb-14-2021, 08:16 PM
    Thread: Update Anaconda and Spyder??
Post: RE: Update Anaconda and Spyder??

I guess the prudent thing to do is uninstall what I have and do a complete reinstall. I'll probably just continue using what I have until it doesn't work anymore, then do the above.
Tuxedo News and Discussions 6 6,969 Feb-14-2021, 06:02 PM
    Thread: Update Anaconda and Spyder??
Post: RE: Update Anaconda and Spyder??

I really don't want to try creating a new environment before getting my current one updated/fixed. I tried 'conda update --all' and it gets stuck on the last line of the below (been sitting there for...
Tuxedo News and Discussions 6 6,969 Feb-13-2021, 06:29 PM
    Thread: Which Machine Learning Course is Best Between Udemy and Coursera
Post: RE: Which Machine Learning Course is Best Between ...

edX has a vast array of courses from schools like MIT, Harvard, Stanford, etc. and as far as I can tell, they are all free if you audit them. edX Link
Tuxedo News and Discussions 7 4,281 Feb-13-2021, 05:36 AM

User Panel Messages

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