How to suppress Pandas Future warning ?

I’ve been working some code with python and doing some operation with pandas library.

I used to get future warning in the console like some method is going to changed or deprecated in the future.

So change it to something else like that.

For sometime, it was fine for me. Over period of time, it was bit annoying. Because I was looking for errors description or output in the console. But this future warning message is showing up regularly and reduced my focus towards main items I need to work on.

So I decided to hide those future warning message in the console for a moment. I was looking at the internet and found an generic way to do it.

By adding following line in the code, all the future warning has been hidden from the console.

import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)

import pandas

Hope this will be helpful for someone in future or may be for myself.

Happy Coding!

Reference

https://github.com/pandas-dev/pandas/issues/2841#issuecomment-13382440

React – Learning path

This post is to track and record my learning of react and use it after some time.

Making some baby steps to learn react.

Here I will be document something related to it.

Basically I’m going to learn about React components, JSX syntax, Forms.

I have good amount knowledge and experience with angular. Now its time do some real learning and experiment in React. Lets do this.

For anyone who are new to React should have some basic understanding about the JavaScript and Web Development.

What is React?

React is a free and open-source front-end JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies. React can be used as a base in the development of single-page or mobile applications.

It focuses on providing rendering and event handling functionalities.

Dev Environment Setup

We need npm installed in our machine. And then we can install the create-react-app

Or if we already have nodejs installed. We can directly run following command to install the package.

npx create-react-app hello-world
cd hello-world
npm start

(npx comes with npm 5.2+ and higher)

It will install create-react-app and create a skeleton app with name hello-world.

After npm start in source folder

Its shows the following screen

Getting Started

…. to be continued