How can I find out how many passengers embarked from each port in Titanic dataset?
You can apply grouping on the port column and then apply a count on the corresponding rows. This will give number the number of passengers embarked from each port.
The Value Counts function in the Pandas library in Python return a count of occurances of each unique value. If you pass the Port Name series to it, it will return the count of times a Port Name occurred, which is the number of people embarking from the port.