pandas_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pandas_notes [2020/12/27 06:34] – raju | pandas_notes [2023/11/12 09:06] (current) – [links I came across] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== common pandas data types ==== | ||
+ | |||
+ | ^ data type ^ description ^ supports missing values ^ | ||
+ | | float | The NumPy float type | Yes | | ||
+ | | int | The NumPy integer type | No | | ||
+ | | ' | ||
+ | | object | The NumPy type for storing strings (and mixed types) | | | ||
+ | | ' | ||
+ | | bool | The NumPy Boolean type | No. \\ None becomes False, np.nan becomes True. | | ||
+ | | ' | ||
+ | | datetime64[ns] | The NumPy date type | Yes (NaT) | | ||
+ | |||
+ | Ref:- (Pandas 1.x Cookbook, by Matt Harrison and Theodore Petrou, second edition, published in 2020) -> Chapter 1 -> page-7 | ||
+ | |||
+ | |||
+ | ==== What packages does pandas depend on? ==== | ||
+ | * Dependencies - https:// | ||
+ | * Recommended dependencies - https:// | ||
+ | * Optional dependencies - https:// | ||
+ | |||
==== links I came across ==== | ==== links I came across ==== | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * http:// | ||
* https:// | * https:// | ||
+ | * DuckDB can run SQL queries directly on Parquet files and automatically take advantage of the advanced features of the Parquet format. | ||
+ | * https:// | ||
+ | * tags | pandas, streaming | ||
+ | |||
+ | ==== EmptyDataError ==== | ||
+ | Instead of | ||
+ | pandas.io.common.EmptyDataError | ||
+ | use | ||
+ | pandas.errors.EmptyDataError | ||
+ | |||
+ | data point | as of pandas 1.1.2, pandas.io.common.EmptyDataError does not work. | ||
+ | |||
+ | Ref:- | ||
+ | * https:// | ||
+ | * <WRAP indent> | ||
+ | > We are adding a standard public module for all pandas exceptions & warnings pandas.errors. (GH14800). Previously these exceptions & warnings could be imported from pandas.core.common or pandas.io.common. These exceptions and warnings will be removed from the *.common locations in a future release. (GH15541) | ||
+ | </ | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | ==== assert_frame_equal ==== | ||
+ | Instead of | ||
+ | from pandas.util.testing import assert_frame_equal | ||
+ | use | ||
+ | from pandas.testing import assert_frame_equal | ||
+ | |||
+ | data point: | ||
+ | |||
+ | Using '' | ||
+ | |||
+ | FutureWarning: | ||
+ |
pandas_notes.1609050877.txt.gz · Last modified: 2020/12/27 06:34 by raju