Eda, Exploratory Data Analysis, Pandas, Python.
distinct_values = value_counts.index.tolist() # Get number of distinct values num_distinct_values = len(distinct_values) # Get min and max values sorted_values = sorted(distinct_values) min_value = sorted_values[0] if sorted_values else None max_value = sorted_values[-1] if sorted_values else None