Skip to content

Commit ea4a09e

Browse files
committed
CLN: remove reindex_like from core/frame.py (use core/generic.py version)
1 parent aa38199 commit ea4a09e

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

pandas/core/frame.py

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,9 @@ def to_dict(self, outtype='dict'):
672672
raise ValueError("outtype %s not understood" % outtype)
673673

674674
def to_gbq(self, destination_table, schema=None, col_order=None, if_exists='fail', **kwargs):
675-
"""Write a DataFrame to a Google BigQuery table.
676-
677-
If the table exists, the DataFrame will be appended. If not, a new table
675+
"""Write a DataFrame to a Google BigQuery table.
676+
677+
If the table exists, the DataFrame will be appended. If not, a new table
678678
will be created, in which case the schema will have to be specified. By default,
679679
rows will be written in the order they appear in the DataFrame, though
680680
the user may specify an alternative order.
@@ -2233,33 +2233,6 @@ def rename(self, index=None, columns=None, **kwargs):
22332233
return super(DataFrame, self).rename(index=index, columns=columns,
22342234
**kwargs)
22352235

2236-
def reindex_like(self, other, method=None, copy=True, limit=None,
2237-
fill_value=NA):
2238-
"""
2239-
Reindex DataFrame to match indices of another DataFrame, optionally
2240-
with filling logic
2241-
2242-
Parameters
2243-
----------
2244-
other : DataFrame
2245-
method : string or None
2246-
copy : boolean, default True
2247-
limit : int, default None
2248-
Maximum size gap to forward or backward fill
2249-
2250-
Notes
2251-
-----
2252-
Like calling s.reindex(index=other.index, columns=other.columns,
2253-
method=...)
2254-
2255-
Returns
2256-
-------
2257-
reindexed : DataFrame
2258-
"""
2259-
return self.reindex(index=other.index, columns=other.columns,
2260-
method=method, copy=copy, limit=limit,
2261-
fill_value=fill_value)
2262-
22632236
def set_index(self, keys, drop=True, append=False, inplace=False,
22642237
verify_integrity=False):
22652238
"""

0 commit comments

Comments
 (0)