Deploy Python Web application using Docker and Amazon EC2


Many of us usually think about the whole life cycle of an application (Web or Standalone), the deployment and testing phase comes with many tough thoughts as a developer. For example, a machine learning model is created, tested locally, and…

Many times when we do our EDA or machine learning predictions, in the end, we end up importing tons of libraries. Python, NumPy, Pandas, Sklearn, Seaborn, Matplotlib, Cross-validation, Regression etc. are the most commonly used libraries we import to achieve the magic.

This lovely tragedy comes in below format:


I was in the process of analyzing AirQuality data set. I found there are two different columns capturing Date and Time in the different column. For better understanding, I thought to make Date and Time as one column and use it as Index for easy access to data. The has given me as below:

info about data frame

i.e. Date is Date time and Time is Object (basically String). I can’t concatenate the two columns straight forward, So I tried to do the following and finally the formula came to achieve this as below:

df[“new time”]=df[“Date”].dt.strftime(‘%Y-%m-%d’).astype(‘str’) +” “+ df[“Time”].astype(‘str’)

Nitesh Srivastava

Strategic and Technical Consultant, A Cloud change enabler, helping business to meet technology for better ROI.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store