diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index d25ccd1b158be..230602612ac66 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -272,7 +272,8 @@ class Categorical(ExtensionArray, PandasObject): Notes ----- See the `user guide - `_ for more. + `_ + for more. Examples -------- diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 94b9dc8ebab55..4f628eff43167 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -95,7 +95,7 @@ Notes ----- See the `user guide -`_ +`_ for more. %(examples)s\ diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index f8488b7a153e3..b22ed45642cf6 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -244,7 +244,7 @@ def union_categoricals(to_union, sort_categories=False, ignore_order=False): ----- To learn more about categories, see `link - `__ + `__ Examples -------- diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 623e2b4863029..bf3f89c8cab45 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3328,8 +3328,8 @@ def _check_setitem_copy(self, stacklevel=4, t='setting', force=False): "A value is trying to be set on a copy of a slice from a " "DataFrame\n\n" "See the caveats in the documentation: " - "http://pandas.pydata.org/pandas-docs/stable/" - "indexing.html#indexing-view-versus-copy" + "http://pandas.pydata.org/pandas-docs/stable/user_guide/" + "indexing.html#returning-a-view-versus-a-copy" ) else: @@ -3338,8 +3338,8 @@ def _check_setitem_copy(self, stacklevel=4, t='setting', force=False): "DataFrame.\n" "Try using .loc[row_indexer,col_indexer] = value " "instead\n\nSee the caveats in the documentation: " - "http://pandas.pydata.org/pandas-docs/stable/" - "indexing.html#indexing-view-versus-copy" + "http://pandas.pydata.org/pandas-docs/stable/user_guide/" + "indexing.html#returning-a-view-versus-a-copy" ) if value == 'raise': @@ -7762,7 +7762,7 @@ def asfreq(self, freq, method=None, how=None, normalize=False, Notes ----- To learn more about the frequency strings, please see `this link - `__. + `__. Examples -------- diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 4e9e3b4963b6d..8640a837beacb 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -218,7 +218,7 @@ class providing the base-class of operations. Notes ----- See more `here -`_ +`_ Examples -------- diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 04d407ebc670d..febfdc7bdf908 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -49,7 +49,7 @@ class Grouper: This will groupby the specified frequency if the target selection (via key or level) is a datetime-like object. For full specification of available frequencies, please see `here - `_. + `_. axis : number/name of the axis, defaults to 0 sort : boolean, default to False whether to sort the resulting labels diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 7fd537fb9989a..c769b6a09b6ef 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -215,7 +215,7 @@ class DatetimeIndex(DatetimeIndexOpsMixin, Int64Index, DatetimeDelegateMixin): Notes ----- To learn more about the frequency strings, please see `this link - `__. + `__. Creating a DatetimeIndex based on `start`, `periods`, and `end` has been deprecated in favor of :func:`date_range`. @@ -1375,7 +1375,7 @@ def date_range(start=None, end=None, periods=None, freq=None, tz=None, ``start`` and ``end`` (closed on both sides). To learn more about the frequency strings, please see `this link - `__. + `__. Examples -------- @@ -1531,7 +1531,7 @@ def bdate_range(start=None, end=None, periods=None, freq='B', tz=None, desired. To learn more about the frequency strings, please see `this link - `__. + `__. Examples -------- @@ -1603,7 +1603,7 @@ def cdate_range(start=None, end=None, periods=None, freq='C', tz=None, must be specified. To learn more about the frequency strings, please see `this link - `__. + `__. Returns ------- diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 87216dcc7b957..44e1efbafcef3 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1190,7 +1190,7 @@ def interval_range(start=None, end=None, periods=None, freq=None, ``start`` and ``end``, inclusively. To learn more about datetime-like frequency strings, please see `this link - `__. + `__. Examples -------- diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index f1553d9db835f..ec2cc70d1a352 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -182,7 +182,8 @@ class MultiIndex(Index): Notes ----- See the `user guide - `_ for more. + `_ + for more. Examples -------- diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 044951ceda502..c041431f7aee7 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -939,7 +939,7 @@ def period_range(start=None, end=None, periods=None, freq=None, name=None): must be specified. To learn more about the frequency strings, please see `this link - `__. + `__. Examples -------- diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py index 6ae17e62b49c6..0574a4b41c920 100644 --- a/pandas/core/indexes/timedeltas.py +++ b/pandas/core/indexes/timedeltas.py @@ -141,7 +141,7 @@ class TimedeltaIndex(DatetimeIndexOpsMixin, dtl.TimelikeOps, Int64Index, Notes ----- To learn more about the frequency strings, please see `this link - `__. + `__. Creating a TimedeltaIndex based on `start`, `periods`, and `end` has been deprecated in favor of :func:`timedelta_range`. @@ -730,7 +730,7 @@ def timedelta_range(start=None, end=None, periods=None, freq=None, ``start`` and ``end`` (closed on both sides). To learn more about the frequency strings, please see `this link - `__. + `__. Examples -------- diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 3c7a286c8a4f8..49fe588363126 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1266,7 +1266,7 @@ def _validate_read_indexer(self, key, indexer, axis, raise_missing=False): KeyError in the future, you can use .reindex() as an alternative. See the documentation here: - https://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike""") # noqa + https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike""") # noqa if not (ax.is_categorical() or ax.is_interval()): warnings.warn(_missing_key_warning, @@ -1415,7 +1415,7 @@ class _IXIndexer(_NDFrameIndexer): .iloc for positional indexing See the documentation here: - http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated""") # noqa + http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#ix-indexer-is-deprecated""") # noqa def __init__(self, name, obj): warnings.warn(self._ix_deprecation_warning, diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index ee3ed3899a55f..4523a6ad48f19 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -100,7 +100,7 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False, A walkthrough of how this method fits in with other tools for combining pandas objects can be found `here - `__. + `__. Examples -------- diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 817d539d4ad6f..0756bdb3777ec 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -533,7 +533,7 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False, dtype: datetime64[ns] If a date does not meet the `timestamp limitations - `_, passing errors='ignore' will return the original input instead of raising any exception. diff --git a/pandas/core/window.py b/pandas/core/window.py index deb64f1fb089d..62fcbe91ae4fb 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -462,7 +462,7 @@ class Window(_Window): See the notes below for further information. on : str, optional For a DataFrame, column on which to calculate - the rolling window, rather than the index + the rolling window, rather than the index. axis : int or str, default 0 closed : str, default None Make the interval closed on the 'right', 'left', 'both' or @@ -488,7 +488,7 @@ class Window(_Window): changed to the center of the window by setting ``center=True``. To learn more about the offsets & frequency strings, please see `this link - `__. + `__. The recognized win_types are: @@ -2188,7 +2188,7 @@ class EWM(_Rolling): (if adjust is True), and 1-alpha and alpha (if adjust is False). More details can be found at - http://pandas.pydata.org/pandas-docs/stable/computation.html#exponentially-weighted-windows + http://pandas.pydata.org/pandas-docs/stable/user_guide/computation.html#exponentially-weighted-windows Examples -------- diff --git a/pandas/io/json/json.py b/pandas/io/json/json.py index ee9d9e000d7e3..20bed9bff7383 100644 --- a/pandas/io/json/json.py +++ b/pandas/io/json/json.py @@ -330,8 +330,8 @@ def read_json(path_or_buf=None, orient=None, typ='frame', dtype=None, chunksize : integer, default None Return JsonReader object for iteration. - See the `line-delimted json docs - `_ + See the `line-delimited json docs + `_ for more information on ``chunksize``. This can only be passed if `lines=True`. If this is None, the file will be read into memory all at once. diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index c65c11e840c27..bcbdd80865360 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -58,7 +58,7 @@ into chunks. Additional help can be found in the online docs for -`IO Tools `_. +`IO Tools `_. Parameters ---------- @@ -753,7 +753,7 @@ def read_fwf(filepath_or_buffer: FilePathOrBuffer, into chunks. Additional help can be found in the `online docs for IO Tools - `_. + `_. Parameters ---------- diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 0f7f6fe399256..74f2f9f7fdc00 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -868,8 +868,8 @@ def put(self, key, value, format=None, append=False, **kwargs): This will force Table format, append the input data to the existing. data_columns : list of columns to create as data columns, or True to - use all columns. See - `here `__ # noqa + use all columns. See `here + `__. encoding : default None, provide an encoding for strings dropna : boolean, default False, do not write an ALL nan row to the store settable by the option 'io.hdf.dropna_table' @@ -950,7 +950,7 @@ def append(self, key, value, format=None, append=True, columns=None, List of columns to create as indexed data columns for on-disk queries, or True to use all columns. By default only the axes of the object are indexed. See `here - `__. + `__. min_itemsize : dict of columns that specify minimum string sizes nan_rep : string to use as string nan represenation chunksize : size to chunk the writing