Data Science

How To Do Sentiment Analysis On Your Favourite Book With R

I love dissecting and analysing my favourite books by reading them again and again, discussing them with my like-minded friends, getting to know the authors and reading other people’s writings about them. My obsession with books lead me to thinking, how can I visualise them in interesting ways? Making Word …

Data Science

How To Create a Word Cloud For Your Favourite Book With R

Making a word cloud is fun and easy. It is a way of looking at text data and gain a different perspective. For example, if you have a bunch of customer feedback about your product, you can quickly create a word cloud to get some ideas. When I work with …

Data Science

How To Customise ShinyApp With Bootstrap, Javascript And Plotly

How To Customise ShinyApp With Bootstrap CSS, Javascript And Plotly What is the easiest way to make a data science product? My answer is to use Shiny. You can code both front-end and server-side in R to create beautiful interactive web applications. You don’t even need to know any HTML. …

Data Engineering

How To Get Data From MongoDB With Python

How to get data from MongoDB with Python MongoDB is one of the most popular no SQL databases used as a backend database for web and mobile applications. Data is stored in MongoDB as BSON, which looks like JSON files. Once you understand the way MongoDB stores data, all you …

Infrastructure

How To Install Apache Spark On Windows

Apache Spark is a powerful framework to utilise cluster-computing for data procession, streaming and machine learning. Its native language is Scala. It also has multi-language support with Python, Java and R. Spark is easy to use and comparably faster than MapReduce. For example, you can write Spark on the Hadoop …

Infrastructure

How To Resolve Refusing to serve hidden directory, via 404 Error with Jupyter notebook.

I hate 404 errors. Whenever I get it, I stare at the screen with disdain because it cannot be fixed most of the time. What cannot be found cannot be found. But, fixing this one is easy! By default, Anaconda serves notebooks from local directory: C:\ in Windows. To resolve …

Infrastructure

How To Install a List of Python Packages From a Text File

Installing all the required Python packages one by one can be time consuming. When you are setting up multiple development environments or creating a virtual environment, you can have a list of Python packages in a text file and install them all together by pip. Steps (1) Create a text …

Infrastructure

Resolving PackageNotFoundError: Packages missing in current channels

If you are using Anaconda as your choice of Python distribution, chances are that you have encountered this error message when you try to install a package with conda install command. There are two ways to fix this issue. Use pip install instead of conda install. Search the package and …

Data Engineering

How To Get Data From Liveperson And Create Aggregated Table With R

In the previous post, we discussed how to ingest data from Liveperson with Python. In this post, I want to use R to make the same API call and create an aggregated table instead of preparing data for ingestion. The code is based on the example here. For further information …

Data Engineering

How To Ingest Data From Liveperson With Python

Engagment History API let you grab livechat interaction data from Liveperson. It is based on the REST architecture and uses OAuth1.0. You first need to retrieve API Keys. In this example, I am using the requests and requests_oauthlib modules to make API calls from Python. Liveperson offers a good code …