Recently I have been working on a React project with functional components and hooks (React 16.8+). There I use Redux to manage application states with both React hooks eg, useState, useCallback etc, and custom hooks. Custom hooks is an interesting topic to me so I did some research on what, why and how to use… Continue reading A Simple Store Powered by the Custom React Hook
Author: Ming
Some Basic Pandas APIs
Pandas library is a very powerful and popular library for manipulating tabular data and carrying out data analysis. However, I personally find that some APIs are somewhat weird and not consistent with other APIs. I end up asking Google from time to time when I want to use them. Hence here I put them down… Continue reading Some Basic Pandas APIs
Useful MacOS commands
Today I discovered some useful Mac commands so I want to document them down here. Turning off Mac display without it going to sleep Turn off the Mac display without getting it to sleep. There might be keys but I found this little command pretty handy. pmset displaysleepnow This will turn off the display immediately… Continue reading Useful MacOS commands
Saving dataframe in Excel with Pandas
I recently helped my friend process their financial data with Python. We came across this issue with Windows 10 running Python 3.7 throwing errors when I was trying to save a pandas data frame to an Microsoft Excel format .xlsx file. So here is the Python code which runs perfectly on a Mac running Python… Continue reading Saving dataframe in Excel with Pandas
Forecasting Time Series Data with Prophet
In my last post, I used ARIMA model to carry out forecasting against a time series dataset. Although it worked, it is a bit too complicated and hard to understand for non expert users like me. Recently I came across Prophet which is an awesome library from Facebook for carrying out forecasting with time series… Continue reading Forecasting Time Series Data with Prophet