pandas_notes
This is an old revision of the document!
Table of Contents
What packages does pandas depend on?
- Recommended dependencies - https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#recommended-dependencies
- Optional dependencies - https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#optional-dependencies
links I came across
- https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html - good reference to learn about iloc, slicing ranges
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:-
- 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)
assert_frame_equal
Instead of
from pandas.util.testing import assert_frame_equal
use
from pandas.testing import assert_frame_equal
data point:
Using from pandas.util.testing import assert_frame_equal
in pandas 1.1.2, I get
FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
pandas_notes.1648766072.txt.gz · Last modified: 2022/03/31 22:34 by raju