-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Series.between() can take arguments that are Series, not just scalars #28435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does this align by series before doing the operation? |
No, if the indices don't perfectly align (or you don't use a scalar), you get
|
Ok, so the arguments can be scalar or any list-like with the same number of elements as self? |
Yes. Basically for |
proost
pushed a commit
to proost/pandas
that referenced
this issue
Dec 19, 2019
…alars (pandas-dev#28717) modified the docs of Series.between() to reflect that it can take any list like object closes pandas-dev#28435
proost
pushed a commit
to proost/pandas
that referenced
this issue
Dec 19, 2019
…alars (pandas-dev#28717) modified the docs of Series.between() to reflect that it can take any list like object closes pandas-dev#28435
bongolegend
pushed a commit
to bongolegend/pandas
that referenced
this issue
Jan 1, 2020
…alars (pandas-dev#28717) modified the docs of Series.between() to reflect that it can take any list like object closes pandas-dev#28435
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code Sample, a copy-pastable example if possible
Problem description
The docs for
Series.between()
at https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.between.html indicate that theleft
andright
arguments are scalars, but it is possible (as shown above) to use aSeries
as either argument.The docs should be updated to reflect this, including the examples.
Expected Output
N/A
Output of
pd.show_versions()
C:\Anaconda3\lib\site-packages\xarray\core\merge.py:17: FutureWarning: The Panel class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version
PANDAS_TYPES = (pd.Series, pd.DataFrame, pd.Panel)
INSTALLED VERSIONS
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.1
numpy : 1.16.4
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.2
setuptools : 41.0.1
Cython : 0.29.12
pytest : 5.0.1
hypothesis : None
sphinx : 2.1.2
blosc : None
feather : None
xlsxwriter : 1.1.8
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : 0.9.3
psycopg2 : 2.7.6.1 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.6.9
odfpy : None
openpyxl : 2.6.2
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.7
tables : 3.5.2
xarray : 0.12.1
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.1.8
The text was updated successfully, but these errors were encountered: