Skip to content
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

DOC: Delete trailing blank lines in docstrings. #23651

Merged
merged 1 commit into from
Nov 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ def from_array(cls, arr, index=None, name=None, dtype=None, copy=False,

.. deprecated :: 0.23.0
Use pd.Series(..) constructor instead.

"""
warnings.warn("'from_array' is deprecated and will be removed in a "
"future version. Please use the pd.Series(..) "
Expand Down Expand Up @@ -437,7 +436,6 @@ def values(self):
array(['2013-01-01T05:00:00.000000000',
'2013-01-02T05:00:00.000000000',
'2013-01-03T05:00:00.000000000'], dtype='datetime64[ns]')

"""
return self._data.external_values()

Expand Down Expand Up @@ -1824,7 +1822,6 @@ def round(self, decimals=0, *args, **kwargs):
--------
numpy.around
DataFrame.round

"""
nv.validate_round(args, kwargs)
result = com.values_from_object(self).round(decimals)
Expand Down Expand Up @@ -1906,7 +1903,6 @@ def corr(self, other, method='pearson', min_periods=None):
min_periods : int, optional
Minimum number of observations needed to have a valid result


Returns
-------
correlation : float
Expand Down Expand Up @@ -2230,8 +2226,6 @@ def append(self, to_append, ignore_index=False, verify_integrity=False):
Traceback (most recent call last):
...
ValueError: Indexes have overlapping values: [0, 1, 2]


"""
from pandas.core.reshape.concat import concat

Expand Down Expand Up @@ -2436,7 +2430,6 @@ def update(self, other):
1 2
2 6
dtype: int64

"""
other = other.reindex_like(self)
mask = notna(other)
Expand Down Expand Up @@ -3011,7 +3004,6 @@ def swaplevel(self, i=-2, j=-1, copy=True):

The indexes ``i`` and ``j`` are now optional, and default to
the two innermost levels of the index.

"""
new_index = self.index.swaplevel(i, j)
return self._constructor(self._values, index=new_index,
Expand Down Expand Up @@ -3336,8 +3328,6 @@ def apply(self, func, convert_dtype=True, args=(), **kwds):
New York 3.044522
Helsinki 2.484907
dtype: float64


"""
if len(self) == 0:
return self._constructor(dtype=self.dtype,
Expand Down