-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Unary plus missing for Series and DataFrame #16073
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
Labels
Compat
pandas objects compatability with Numpy or Python functions
Enhancement
good first issue
Numeric Operations
Arithmetic, Comparison, and Logical operations
Milestone
Comments
Obviously low priority. |
sure this is pretty straightforward to add actually see how we implement a pull request would be great! (with tests!) |
This was referenced Apr 23, 2017
Closed
Thank you @wuisawesome and @jreback. |
deniederhut
added a commit
to deniederhut/pandas
that referenced
this issue
Jan 18, 2018
Adds special method for unary plus to ndframe generics, and restricts the allowed dtypes for the unary negative. Closes pandas-dev#16073.
4 tasks
deniederhut
added a commit
to deniederhut/pandas
that referenced
this issue
Jan 23, 2018
Adds special method for unary plus to ndframe generics, and restricts the allowed dtypes for the unary negative. Closes pandas-dev#16073.
deniederhut
added a commit
to deniederhut/pandas
that referenced
this issue
Jan 29, 2018
Adds special method for unary plus to ndframe generics, and restricts the allowed dtypes for the unary negative. Closes pandas-dev#16073.
deniederhut
added a commit
to deniederhut/pandas
that referenced
this issue
Feb 2, 2018
Adds special method for unary plus to ndframe generics, and restricts the allowed dtypes for the unary negative. Closes pandas-dev#16073.
deniederhut
added a commit
to deniederhut/pandas
that referenced
this issue
Feb 5, 2018
Adds special method for unary plus to ndframe generics, and restricts the allowed dtypes for the unary negative. Closes pandas-dev#16073.
deniederhut
added a commit
to deniederhut/pandas
that referenced
this issue
Feb 7, 2018
Adds special method for unary plus to ndframe generics, and restricts the allowed dtypes for the unary negative. Closes pandas-dev#16073.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Compat
pandas objects compatability with Numpy or Python functions
Enhancement
good first issue
Numeric Operations
Arithmetic, Comparison, and Logical operations
Code Sample
Problem description
Unary plus is well-defined on built-in types and Numpy ndarrays. It is not defined for Series or DataFrame. It's not ever necessary, but the asymmetry with the present unary minus is unexpected. It's also occasionally nice to use it to line up a positive expression against a negative expression. Likely adding methods implemented as an identity is sufficient.
Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.1.35-pv-ts2
machine: x86_64
processor:
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2.post+ts5
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.19.0
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.4.5
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.5.3
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.9
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: