All Questions
5 questions
4
votes
1
answer
598
views
One minute cron Python script reads from MySQL and updates Redis based on calculations
The following code works and will be put into cron on a AWS server (not sure what specifications, cores, kernels etc) at a every 1 minute frequency.
However, it's my first time putting a script into ...
8
votes
2
answers
155
views
Developing an investment strategy based on stock movements
Below is my code
...
4
votes
2
answers
836
views
Generating a PANDAS DataFrame of simulated coin tosses
It's taking my machine quite a long time to execute 1 billion (1st loop x 10, 2nd loop x 1000, 3rd loop x 100,000) instructions. Suggestions for performance enhancements? Sources of potential concern:
...
5
votes
1
answer
198
views
Random Forest Code Optimization
I am new to Python. I have built a model with randomforest in python. But I think my code is not optimized. Please look into my code and suggest if I have deviated from best practices.
Overview about ...
2
votes
1
answer
641
views
Operating multiple columns of one pandas DataFrame using data from another
I have a DataFrame of data from a survey that was repeated over several years, asking people about their income and how much money they had in savings. For simplicity, let's pretend it looks like this:...