|
19 | 19 | from pandas.core.common import isnull |
20 | 20 | from pandas.core.base import PandasObject |
21 | 21 | from pandas.tseries.tools import to_datetime |
| 22 | +from pandas.util.decorators import Appender |
22 | 23 |
|
23 | 24 | from contextlib import contextmanager |
24 | 25 |
|
@@ -1533,13 +1534,15 @@ def get_schema(frame, name, flavor='sqlite', keys=None, con=None): |
1533 | 1534 |
|
1534 | 1535 | # legacy names, with depreciation warnings and copied docs |
1535 | 1536 |
|
| 1537 | +@Appender(read_sql.__doc__, join='\n') |
1536 | 1538 | def read_frame(*args, **kwargs): |
1537 | 1539 | """DEPRECATED - use read_sql |
1538 | 1540 | """ |
1539 | 1541 | warnings.warn("read_frame is deprecated, use read_sql", FutureWarning) |
1540 | 1542 | return read_sql(*args, **kwargs) |
1541 | 1543 |
|
1542 | 1544 |
|
| 1545 | +@Appender(read_sql.__doc__, join='\n') |
1543 | 1546 | def frame_query(*args, **kwargs): |
1544 | 1547 | """DEPRECATED - use read_sql |
1545 | 1548 | """ |
@@ -1587,8 +1590,3 @@ def write_frame(frame, name, con, flavor='sqlite', if_exists='fail', **kwargs): |
1587 | 1590 | index = kwargs.pop('index', False) |
1588 | 1591 | return to_sql(frame, name, con, flavor=flavor, if_exists=if_exists, |
1589 | 1592 | index=index, **kwargs) |
1590 | | - |
1591 | | - |
1592 | | -# Append wrapped function docstrings |
1593 | | -read_frame.__doc__ += read_sql.__doc__ |
1594 | | -frame_query.__doc__ += read_sql.__doc__ |
0 commit comments