Data Analytics
In this article, we are going to predict the price of a flight considering some features such as Airline, Source, Destination, Route, Date of Journey, Total Stops, and some additional info. Let's start by importing the libraries: It is an approach to analyzing data by summarizing the main characteristics of the data. From the information, the Date_of_Journey feature is an object type. To use this column in the features then we have to convert it into a timestamp for prediction. We need pandas to function to_datetime to convert object data type to timestamp type.
May-24-2021, 13:50:34 GMT