danepitkin commented on code in PR #33810:
URL: https://github.com/apache/arrow/pull/33810#discussion_r1095011998
##########
python/pyarrow/table.pxi:
##########
@@ -4708,6 +4711,11 @@ cdef class Table(_PandasConvertible):
return table
+ drop = drop_columns
+ """
+ Alias of Table.drop_columns, kept for backwards compatibility.
+ """
Review Comment:
I'm going to remove the alias and use a wrapper. I'm not sure if it's
possible to update the docstring of an alias without affecting the original
method's docstring.
I tried this:
```
drop = drop_columns
drop.__doc__ = """Alias of Table.drop_columns, kept for backwards
compatibility."""
```
..but got an error:
```
Traceback (most recent call last):
...
File "pyarrow/table.pxi", line 4729, in init pyarrow.lib
AttributeError: attribute '__doc__' of 'method_descriptor' objects is not
writable
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]