Commit 75c31c84 authored by George Mount's avatar George Mount
Browse files

Update working-with-tabular-data.ipynb

parent c5cffe41
......@@ -2012,6 +2012,18 @@
"source": [
"Data types or `dtypes` in `pandas` work a little differently than base Python. Here is the basic mapping (courtesy [Practical Business Python](https://pbpython.com/pandas_dtypes.html)):\n",
"\n",
"| Pandas dtype | Python type | NumPy type | Usage |\n",
"| ------------- | ------------ | -------------------------------------------------------------- | -------------------------------------------- |\n",
"| object | str or mixed | string_, unicode_, mixed types | Text or mixed numeric and non-numeric values |\n",
"| int64 | int | int_, int8, int16, int32, int64, uint8, uint16, uint32, uint64 | Integer numbers |\n",
"| float64 | float | float_, float16, float32, float64 | Floating point numbers |\n",
"| bool | bool | bool_ | True/False values |\n",
"| datetime64 | datetime | datetime64[ns] | Date and time values |\n",
"| timedelta[ns] | NA | NA | Differences between two datetimes |\n",
"| category | NA | NA | Finite list of text values |\n",
"\n",
"\n",
"\n",
"\n",
"If you would like to learn more about dates & times in Python and `pandas`, [check out this book chapter](https://learning.oreilly.com/library/view/python-data-science/9781491912126/ch03.html#:-:text=Pandas%20was%20developed%20in%20t,ich%20we%20will%20discuss%20here%3A)."
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment