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
A Simple Store Powered by the Custom React Hook
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
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
Machine Learning in Javascript powered by Tensorflow.js
Python has been one of the most popular programming languages for implementing machine learning applications. Tensorflow is one of the most popular frameworks for machine learning written in Python. Recently I came across Tensorflow.js project which I feel very excited about as it brings up a whole new world of opportunities for implementing machine learning algorithms… Continue reading Machine Learning in Javascript powered by Tensorflow.js