Python

Encoding Issues To Connect MySQL With Python

Encoding Issues To Connect MySQL With Python

There are many types of databases, such as MySQL, and Oracle. Even within the same database type, many Python packages are available, such as MySQLdb, PyMySQL, SQLAlchemy, MySQL Connector Python. Overall, the syntax is similar. The information needed to connect to a database is nothing more than the IP, database name, user account, and password, etc. The basic syntax for using MySQLdb in Python is as follows, remember to add a colon in the SQL syntax in the execute; otherwise, it will go wrong. I also fell for this stupid mistake.

Encoding Issues To Connect MySQL With Python Read More »

google_trends_enhanced_cover

Google Trends Enhanced – Search Multiple Keywords At One Time

Google Trends Enhanced revolutionizes keyword research by allowing users to search more than five keywords simultaneously. It groups keywords, obtains search interest data, and merges results into an Excel file. The tool overcomes data comparison challenges by using a benchmark keyword for scaling. It also provides daily data for periods exceeding nine months, offering greater flexibility for various analytical purposes.

Google Trends Enhanced – Search Multiple Keywords At One Time Read More »

stock-market-prediction-with-machine-learning

Stock Market Prediction With Machine Learning. The Project Grow Your Analytic And Investment Skills.

I’m bold enough to call stock forecasting the best because it’s a project that can monetize and accumulate experience in data analytics and investment operations. Since investment and programming have become mainstream in this era, combining these two learning paths seems natural and logical. Of course, the cost of learning will be very expensive, but it is just like the beauty of the climb over the mountains that is so appealing.

Stock Market Prediction With Machine Learning. The Project Grow Your Analytic And Investment Skills. Read More »

Publish A Interactive Data Visualization Dashboard On A Website

Publish An Interactive Data Visualization Dashboard On A Website – All The Solutions I Tried

Python emerges as the preferred language for data analytics projects due to its versatility in web crawling and broader applications. Hosting dashboards on personal websites presents traffic management challenges. While Power BI and Tableau have limitations, Grafana Labs offers a viable open-source option. PythonAnywhere provides a tailored solution for Python-based projects, offering affordable plans and recently acquired by Anaconda for enhanced stability and development.

Publish An Interactive Data Visualization Dashboard On A Website – All The Solutions I Tried Read More »

List All Subdirectories And Files In Python, Then Assign Depth And Extensions.

Iterating a path to list all subdirectories and files is an extremely helpful function. You can read bulk excel files with several pretty simple codes. As a lazy guy like me, wrap it to a function make me write code effectively. The code below seems huge, but it contains multiple pieces of functions. All of them are used to operate lists, and the main function to list paths and files is os_get_dir_list()

List All Subdirectories And Files In Python, Then Assign Depth And Extensions. Read More »

Target_Apyori - Improved Apriori Algorithm For Specific Products

Target_Apyori – Improved Apriori Algorithm For Specific Products In Python

Apriori is a common algorithm for retail analysis. But it will be heavy if you load huge transaction data. You may want to focus on association rules of specific SKU (or called CUG) in some cases. Based on apyori package 1.1.2 for Python, I hacked it to be liter and faster. Most of the arguments are the same with apyori, but with an additional list argument, target.

Target_Apyori – Improved Apriori Algorithm For Specific Products In Python Read More »

download-stock-historical-data-with-python-and-yahoo-finance-api

Retrieve Stock Historical Data With Python And Yahoo Finance API

Stock market data is valuable for analysis, but accessing it can be challenging. Yahoo Finance offers a convenient alternative, allowing users to search by stock symbols. While the free API occasionally encounters errors, it remains a viable option for manual retrieval. For automated tasks, try/except statements can help manage connection issues. Other API services exist, but verifying supported symbols is crucial before investing.

Retrieve Stock Historical Data With Python And Yahoo Finance API Read More »