Skip to content

Commit 2c25bd1

Browse files
dcreekpjreback
authored andcommitted
DOC: Remove pandas. prefix from See Also section in Series #23659 (#23749)
1 parent 001a05f commit 2c25bd1

File tree

6 files changed

+48
-48
lines changed

6 files changed

+48
-48
lines changed

pandas/core/algorithms.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ def _factorize_array(values, na_sentinel=-1, size_hint=None,
509509
510510
See Also
511511
--------
512-
pandas.cut : Discretize continuous-valued array.
513-
pandas.unique : Find the unique value in an array.
512+
cut : Discretize continuous-valued array.
513+
unique : Find the unique value in an array.
514514
515515
Examples
516516
--------

pandas/core/arrays/datetimes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -897,8 +897,8 @@ def to_period(self, freq=None):
897897
898898
See Also
899899
--------
900-
pandas.PeriodIndex: Immutable ndarray holding ordinal values.
901-
pandas.DatetimeIndex.to_pydatetime: Return DatetimeIndex as object.
900+
PeriodIndex: Immutable ndarray holding ordinal values.
901+
DatetimeIndex.to_pydatetime: Return DatetimeIndex as object.
902902
"""
903903
from pandas.core.arrays import PeriodArray
904904

pandas/core/generic.py

+29-29
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def set_axis(self, labels, axis=0, inplace=None):
565565
566566
See Also
567567
--------
568-
pandas.DataFrame.rename_axis : Alter the name of the index or columns.
568+
DataFrame.rename_axis : Alter the name of the index or columns.
569569
570570
Examples
571571
--------
@@ -1164,9 +1164,9 @@ def rename_axis(self, mapper=None, **kwargs):
11641164
11651165
See Also
11661166
--------
1167-
pandas.Series.rename : Alter Series index labels or name.
1168-
pandas.DataFrame.rename : Alter DataFrame index labels or name.
1169-
pandas.Index.rename : Set new names on index.
1167+
Series.rename : Alter Series index labels or name.
1168+
DataFrame.rename : Alter DataFrame index labels or name.
1169+
Index.rename : Set new names on index.
11701170
11711171
Examples
11721172
--------
@@ -2042,8 +2042,8 @@ def _repr_latex_(self):
20422042
20432043
See Also
20442044
--------
2045-
pandas.read_excel
2046-
pandas.ExcelWriter
2045+
read_excel
2046+
ExcelWriter
20472047
20482048
Examples
20492049
--------
@@ -2161,7 +2161,7 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None,
21612161
21622162
See Also
21632163
--------
2164-
pandas.read_json
2164+
read_json
21652165
21662166
Examples
21672167
--------
@@ -2393,7 +2393,7 @@ def to_sql(self, name, con, schema=None, if_exists='fail', index=True,
23932393
23942394
See Also
23952395
--------
2396-
pandas.read_sql : Read a DataFrame from a table.
2396+
read_sql : Read a DataFrame from a table.
23972397
23982398
Notes
23992399
-----
@@ -4216,7 +4216,7 @@ def filter(self, items=None, like=None, regex=None, axis=None):
42164216
42174217
See Also
42184218
--------
4219-
pandas.DataFrame.loc
4219+
DataFrame.loc
42204220
42214221
Notes
42224222
-----
@@ -4275,7 +4275,7 @@ def head(self, n=5):
42754275
42764276
See Also
42774277
--------
4278-
pandas.DataFrame.tail: Returns the last `n` rows.
4278+
DataFrame.tail: Returns the last `n` rows.
42794279
42804280
Examples
42814281
--------
@@ -4334,7 +4334,7 @@ def tail(self, n=5):
43344334
43354335
See Also
43364336
--------
4337-
pandas.DataFrame.head : The first `n` rows of the caller object.
4337+
DataFrame.head : The first `n` rows of the caller object.
43384338
43394339
Examples
43404340
--------
@@ -4584,9 +4584,9 @@ def sample(self, n=None, frac=None, replace=False, weights=None,
45844584
45854585
See Also
45864586
--------
4587-
pandas.DataFrame.apply
4588-
pandas.DataFrame.applymap
4589-
pandas.Series.map
4587+
DataFrame.apply
4588+
DataFrame.applymap
4589+
Series.map
45904590
""")
45914591

45924592
@Appender(_shared_docs['pipe'] % _shared_doc_kwargs)
@@ -4899,7 +4899,7 @@ def as_matrix(self, columns=None):
48994899
49004900
See Also
49014901
--------
4902-
pandas.DataFrame.values
4902+
DataFrame.values
49034903
"""
49044904
warnings.warn("Method .as_matrix will be removed in a future version. "
49054905
"Use .values instead.", FutureWarning, stacklevel=2)
@@ -5305,9 +5305,9 @@ def astype(self, dtype, copy=True, errors='raise', **kwargs):
53055305
53065306
See Also
53075307
--------
5308-
pandas.to_datetime : Convert argument to datetime.
5309-
pandas.to_timedelta : Convert argument to timedelta.
5310-
pandas.to_numeric : Convert argument to a numeric type.
5308+
to_datetime : Convert argument to datetime.
5309+
to_timedelta : Convert argument to timedelta.
5310+
to_numeric : Convert argument to a numeric type.
53115311
numpy.ndarray.astype : Cast a numpy array to a specified type.
53125312
"""
53135313
if is_dict_like(dtype):
@@ -5527,9 +5527,9 @@ def convert_objects(self, convert_dates=True, convert_numeric=False,
55275527
55285528
See Also
55295529
--------
5530-
pandas.to_datetime : Convert argument to datetime.
5531-
pandas.to_timedelta : Convert argument to timedelta.
5532-
pandas.to_numeric : Convert argument to numeric type.
5530+
to_datetime : Convert argument to datetime.
5531+
to_timedelta : Convert argument to timedelta.
5532+
to_numeric : Convert argument to numeric type.
55335533
55345534
Returns
55355535
-------
@@ -5561,9 +5561,9 @@ def infer_objects(self):
55615561
55625562
See Also
55635563
--------
5564-
pandas.to_datetime : Convert argument to datetime.
5565-
pandas.to_timedelta : Convert argument to timedelta.
5566-
pandas.to_numeric : Convert argument to numeric type.
5564+
to_datetime : Convert argument to datetime.
5565+
to_timedelta : Convert argument to timedelta.
5566+
to_numeric : Convert argument to numeric type.
55675567
55685568
Returns
55695569
-------
@@ -9904,8 +9904,8 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
99049904
99059905
See Also
99069906
--------
9907-
pandas.read_csv : Load a CSV file into a DataFrame.
9908-
pandas.to_excel : Load an Excel file into a DataFrame.
9907+
read_csv : Load a CSV file into a DataFrame.
9908+
to_excel : Load an Excel file into a DataFrame.
99099909
99109910
Examples
99119911
--------
@@ -10101,8 +10101,8 @@ def _doc_parms(cls):
1010110101
_all_see_also = """\
1010210102
See Also
1010310103
--------
10104-
pandas.Series.all : Return True if all elements are True.
10105-
pandas.DataFrame.any : Return True if one (or more) elements are True.
10104+
Series.all : Return True if all elements are True.
10105+
DataFrame.any : Return True if one (or more) elements are True.
1010610106
"""
1010710107

1010810108
_cnum_doc = """
@@ -10128,7 +10128,7 @@ def _doc_parms(cls):
1012810128
%(examples)s
1012910129
See Also
1013010130
--------
10131-
pandas.core.window.Expanding.%(accum_func_name)s : Similar functionality
10131+
core.window.Expanding.%(accum_func_name)s : Similar functionality
1013210132
but ignores ``NaN`` values.
1013310133
%(name2)s.%(accum_func_name)s : Return the %(desc)s over
1013410134
%(name2)s axis.

pandas/core/indexes/datetimelike.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def strftime(self, date_format):
5858
5959
See Also
6060
--------
61-
pandas.to_datetime : Convert the given argument to datetime.
61+
to_datetime : Convert the given argument to datetime.
6262
DatetimeIndex.normalize : Return DatetimeIndex with times to midnight.
6363
DatetimeIndex.round : Round the DatetimeIndex to the specified freq.
6464
DatetimeIndex.floor : Floor the DatetimeIndex to the specified freq.

pandas/core/series.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ def unique(self):
14541454
14551455
See Also
14561456
--------
1457-
pandas.unique : Top-level unique method for any 1-d array-like object.
1457+
unique : Top-level unique method for any 1-d array-like object.
14581458
Index.unique : Return Index with unique values from an Index object.
14591459
14601460
Examples
@@ -1636,9 +1636,9 @@ def duplicated(self, keep='first'):
16361636
16371637
See Also
16381638
--------
1639-
pandas.Index.duplicated : Equivalent method on pandas.Index.
1640-
pandas.DataFrame.duplicated : Equivalent method on pandas.DataFrame.
1641-
pandas.Series.drop_duplicates : Remove duplicate values from Series.
1639+
Index.duplicated : Equivalent method on pandas.Index.
1640+
DataFrame.duplicated : Equivalent method on pandas.DataFrame.
1641+
Series.drop_duplicates : Remove duplicate values from Series.
16421642
"""
16431643
return super(Series, self).duplicated(keep=keep)
16441644

@@ -1869,7 +1869,7 @@ def quantile(self, q=0.5, interpolation='linear'):
18691869
18701870
See Also
18711871
--------
1872-
pandas.core.window.Rolling.quantile
1872+
core.window.Rolling.quantile
18731873
numpy.percentile
18741874
"""
18751875

@@ -2179,7 +2179,7 @@ def append(self, to_append, ignore_index=False, verify_integrity=False):
21792179
21802180
See Also
21812181
--------
2182-
pandas.concat : General function to concatenate DataFrame, Series
2182+
concat : General function to concatenate DataFrame, Series
21832183
or Panel objects.
21842184
21852185
Returns
@@ -3192,8 +3192,8 @@ def _gotitem(self, key, ndim, subset=None):
31923192
31933193
See Also
31943194
--------
3195-
pandas.Series.apply : Invoke function on a Series.
3196-
pandas.Series.transform : Transform function producing
3195+
Series.apply : Invoke function on a Series.
3196+
Series.transform : Transform function producing
31973197
a Series with like indexes.
31983198
""")
31993199

@@ -3458,7 +3458,7 @@ def rename(self, index=None, **kwargs):
34583458
34593459
See Also
34603460
--------
3461-
pandas.Series.rename_axis
3461+
Series.rename_axis
34623462
34633463
Examples
34643464
--------
@@ -3732,7 +3732,7 @@ def isin(self, values):
37323732
37333733
See Also
37343734
--------
3735-
pandas.DataFrame.isin : Equivalent method on DataFrame.
3735+
DataFrame.isin : Equivalent method on DataFrame.
37363736
37373737
Examples
37383738
--------
@@ -3790,8 +3790,8 @@ def between(self, left, right, inclusive=True):
37903790
37913791
See Also
37923792
--------
3793-
pandas.Series.gt : Greater than of series and other.
3794-
pandas.Series.lt : Less than of series and other.
3793+
Series.gt : Greater than of series and other.
3794+
Series.lt : Less than of series and other.
37953795
37963796
Examples
37973797
--------
@@ -3883,7 +3883,7 @@ def from_csv(cls, path, sep=',', parse_dates=True, header=None,
38833883
38843884
See Also
38853885
--------
3886-
pandas.read_csv
3886+
read_csv
38873887
38883888
Returns
38893889
-------

pandas/core/strings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ def str_get_dummies(arr, sep='|'):
999999
10001000
See Also
10011001
--------
1002-
pandas.get_dummies
1002+
get_dummies
10031003
"""
10041004
arr = arr.fillna('')
10051005
try:

0 commit comments

Comments
 (0)