text_plain_output_1.png
import pandas as pd

training_set = pd.read_csv('/kaggle/input/aviachipta-narxini-bashorat-qilish/train_data.csv')
test_set = pd.read_csv('/kaggle/input/aviachipta-narxini-bashorat-qilish/test_data.csv')

airlines = list(training_set.airline) + list(test_set.airline)
flights = list(training_set.flight) + list(test_set.flight)
source_cities = list(training_set.source_city) + list(test_set.source_city)
departure_times = list(training_set.departure_time) + list(test_set.departure_time)
stops = list(training_set.stops) + list(test_set.stops)
arrival_times = list(training_set.arrival_time) + list(test_set.arrival_time)
destination_cities = list(training_set.destination_city) + list(test_set.destination_city)
classes = list(training_set['class']) + list(test_set['class'])
print('\nAirlanes ustunidagi jami takrorlanmas qymatlar soni  : \n ', len(set(airlines)))
print('\nAirlanes ustunidagi  takrorlanmas qymatlar  : \n ', set(airlines))
print('\nFlights ustunidagi jami takrorlanmas qymatlar soni: \n ', len(set(flights)))
print('\nSource_cities ustunidagi jami takrorlanmas qymatlar soni : \n ', len(set(source_cities)))
print('\nSource_cities ustunidagi  takrorlanmas qymatlar : \n ', set(source_cities))
print('\nDeparture_time ustunidagi jami takrorlanmas qymatlar soni : \n ', len(set(departure_times)))
print('\nDeparture_time ustunidagi takrorlanmas qymatlar : \n ', set(departure_times))
print('\nStops ustunidagi jami takrorlanmas qymatlar soni : \n ', len(set(stops)))
print('\nStops ustunidagi  takrorlanmas qymatlar : \n ', set(stops))
print('\nArrival_time ustunidagi jami takrorlanmas qymatlar soni : \n ', len(set(arrival_times)))
print('\nArrival_time ustunidagi  takrorlanmas qymatlar : \n ', set(arrival_times))
print('\nDestination_citiy ustunidagi jami takrorlanmas qymatlar soni : \n ', len(set(destination_cities)))
print('\nDestination_citiy ustunidagi  takrorlanmas qymatlar : \n ', set(destination_cities))
print('\nClass ustunidagi jami takrorlanmas qymatlar soni : \n ', len(set(classes)))
print('\nClass ustunidagi  takrorlanmas qymatlar : \n ', set(classes))