• Descriptive Statistics
  • Data Visualization with Pandas
  • Handling Missing Data
  • Working with Dates and Times
  • Merging and Joining DataFrames

How to subtract dates in Pandas

In Pandas, you can subtract two dates to get the time delta between them. The result will be a Timedelta object, which represents the difference between two dates or times in terms of days, seconds, microseconds, milliseconds, minutes, hours, weeks, or years.

For example, consider the following two dates: (more…)

Continue ReadingHow to subtract dates in Pandas

How to VLOOKUP in Pandas

In this article, I try to show how to vlookup in Pandas.

The VLOOKUP function in Excel is a popular function that allows you to search for a value in a table and return the corresponding value from another column. The equivalent of a VLOOKUP in Pandas is the merge method, which allows you to join two DataFrames based on a common column.

(more…)

Continue ReadingHow to VLOOKUP in Pandas