XGBoost to optimize the budget division and maximize the sales for each vendor product

we have a list of vendor-products with vendor discounts, and the historical data that shows each products with how much total discount sold in each vendor and vendor area, we have a limited budget to add on top to vendor discounts to sell the product better. please write a python code to optimize the budget… Continue reading XGBoost to optimize the budget division and maximize the sales for each vendor product

polars join is so slow

If the join operation using polars is slow, there are some additional things you can try to improve performance: join_par is a method in Polars that performs a parallel join operation. Here’s how you can use it: The join_par method takes two arguments: the second dataframe to join and the join keys. In the example… Continue reading polars join is so slow

stock forecasting in python

there are algorithms in Python to forecast stock market prices. Some popular algorithms include: It’s important to note that stock market forecasting is a challenging task and there’s no guarantee that any forecasting algorithm will be accurate. The stock market is influenced by numerous factors, including economic indicators, geopolitical events, and market sentiment, which can… Continue reading stock forecasting in python

python code that helps update resume based on job description

a code to update your resume based on a job description would likely need to be quite complex and specific to your resume format. Additionally, writing a complete resume from scratch based on a job description is not a task that can be automated by a simple script. However, I can give you a simple… Continue reading python code that helps update resume based on job description

Pandas vs polars functions

common Pandas functions and their equivalent functions in the polars library: These are some of the commonly used Pandas functions and their equivalent in polars library. It is possible that some functions may not have an equivalent in polars library and some additional functions may be available in polars library. The polars library is a… Continue reading Pandas vs polars functions

what should we learn that will be critical in next 20 years?

Here are some skills and fields that may be critical in the next 20 years: Note: The specific skills that will be critical can vary depending on the region and industry, but these are some of the broad areas that are likely to be important in the future.

install fbprophet in python

when entering maybe you get this error: or any others and you tried everything!!just try this one and do not install conda or anything else!!: or then start coding easily: you can add news data as an additional regressor to the model by using the add_regressor method in the prophet library. Here’s an example code:… Continue reading install fbprophet in python

Screen cheat sheet

Escape key All screen commands are prefixed by an escape key, by default C-a (that’s Control-a, sometimes written ^a). To send a literal C-a to the programs in screen, use C-a a. This is useful when when working with screen within screen. For example C-a a n will move screen to a new window on the screen within screen. Getting in screen -S… Continue reading Screen cheat sheet