Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pandas
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Birhanu Belay
pandas
Commits
f3b79854
Unverified
Commit
f3b79854
authored
5 months ago
by
sunlight
Committed by
GitHub
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Fix docstrings for errors (#60523)
* DOC: Fix docstrings for errors * DOC: Fix docstrings for errors
parent
2d774e7f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci/code_checks.sh
+0
-3
0 additions, 3 deletions
ci/code_checks.sh
pandas/errors/__init__.py
+18
-0
18 additions, 0 deletions
pandas/errors/__init__.py
with
18 additions
and
3 deletions
ci/code_checks.sh
+
0
−
3
View file @
f3b79854
...
...
@@ -95,9 +95,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i
"pandas.core.resample.Resampler.std SA01"
\
-i
"pandas.core.resample.Resampler.transform PR01,RT03,SA01"
\
-i
"pandas.core.resample.Resampler.var SA01"
\
-i
"pandas.errors.NullFrequencyError SA01"
\
-i
"pandas.errors.NumbaUtilError SA01"
\
-i
"pandas.errors.PerformanceWarning SA01"
\
-i
"pandas.errors.UndefinedVariableError PR01,SA01"
\
-i
"pandas.errors.ValueLabelTypeMismatch SA01"
\
-i
"pandas.io.json.build_table_schema PR07,RT03,SA01"
\
...
...
This diff is collapsed.
Click to expand it.
pandas/errors/__init__.py
+
18
−
0
View file @
f3b79854
...
...
@@ -45,6 +45,11 @@ class NullFrequencyError(ValueError):
Particularly ``DatetimeIndex.shift``, ``TimedeltaIndex.shift``,
``PeriodIndex.shift``.
See Also
--------
Index.shift : Shift values of Index.
Series.shift : Shift values of Series.
Examples
--------
>>>
df
=
pd
.
DatetimeIndex
([
"
2011-01-01 10:00
"
,
"
2011-01-01
"
],
freq
=
None
)
...
...
@@ -58,6 +63,12 @@ class PerformanceWarning(Warning):
"""
Warning raised when there is a possible performance impact.
See Also
--------
DataFrame.set_index : Set the DataFrame index using existing columns.
DataFrame.loc : Access a group of rows and columns by label(s)
\
or a boolean array.
Examples
--------
>>>
df
=
pd
.
DataFrame
(
...
...
@@ -385,6 +396,13 @@ class NumbaUtilError(Exception):
"""
Error
raised
for
unsupported
Numba
engine
routines
.
See
Also
--------
DataFrame
.
groupby
:
Group
DataFrame
using
a
mapper
or
by
a
Series
of
columns
.
Series
.
groupby
:
Group
Series
using
a
mapper
or
by
a
Series
of
columns
.
DataFrame
.
agg
:
Aggregate
using
one
or
more
operations
over
the
specified
axis
.
Series
.
agg
:
Aggregate
using
one
or
more
operations
over
the
specified
axis
.
Examples
--------
>>>
df
=
pd
.
DataFrame
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment