-
Notifications
You must be signed in to change notification settings - Fork 2
Pandas Vs Numpy
Dhiraj edited this page Feb 9, 2019
·
3 revisions
Indeed, pandas provides high level data manipulation tools built on top of NumPy. NumPy by itself is a fairly low-level tool, and will be very much similar to using MATLAB. pandas on the other hand provides rich time series functionality, data alignment, NA-friendly statistics, groupby, merge and join methods, and lots of other conveniences. It has become very popular in recent years in financial applications. I will have a chapter dedicated to financial data analysis using pandas in my upcoming book.
- Pandas offer a great way to manipulate tables.
- numpy consumes less memory compared to pandas.
- numpy generally performs better than pandas for 50K rows or less.
- pandas generally performs better than numpy for 500K rows or more.
- for 50K to 500K rows, it is a toss up between pandas and numpy depending on the kind of operation.