The analysis of the large-scale data of transportation and accidents has many potentials and it can give very useful insights from the hidden relationship of data. Accidents datasets are used to find main causes of traffic accidents which mainly causes traffic causality and congestion. The vehicular causality dataset used to study human behavior effect on causing traffic accidents. This paper uses nine attributes and two classification algorithm to analyze and predict the possibilities of traffic accidents in python coding environment. Python has a large and comprehensive standard library . pandas is a software library written for the PYTHON programming language for data manipulation and analysis. The random forest algorithm and naïve Bayes algorithm predicts the possibilities of outcomes being a sign of any accident. Checking for the accurate results from algorithms rules and policies are made which is submitted to practioners and decision makers for further road safety measures.