r/pythoncoding • u/AutoModerator • Sep 19 '22
/r/PythonCoding bi-weekly "What are you working on?" thread
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
This recurring thread is a new addition to the subreddit and will be evaluated after the first few editions.
9
Upvotes
1
u/Muggleish_wizadry Sep 19 '22
I'm working on a hotel-bookings dataset from kaggle for a demand forecasting problem. I just started. I'm at a stage of feature engineering.
The next step is to implement either ARIMA or Prophet to obtain insights and predict future bookings.
Since booing hotels is seasonal, I might have to implement SARIMA to see the effect of seasonality.
I'll update this comment if anyone finds this useful.
1
u/erez27 Sep 24 '22
I decided to fix the threading in my data-diff project, and I think the solution ended up pretty cool.
I was using the new
ThreadPoolExecutorinterface, which I think is much nicer than the lower-level threading module, and could do everything I needed, except for prioritizing tasks.Now, there is no official way to extend it, but it ended up being pretty simple, albit slightly hacky -
I had to adapt the priority queue to support
WorkItem, which is whatThreadPoolExecutoruses internally. But that was also relatively simple:And that's it! Now I can just create new tasks with a priority, like -
I hope we're allowed to get technical here :)
1
u/dinosaursandsluts Sep 29 '22
Just finished my playfair cipher
https://github.com/quinton-c/playfaircipher/blob/master/cipher.py
It's not much, but I don't really know what else I want to make