You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pandas/guide/pandas_docstring.html
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -764,7 +764,16 @@ <h2>About docstrings and standards<a class="headerlink" href="#about-docstrings-
764
764
imported as <codeclass="docutils literal notranslate"><spanclass="pre">import</span><spanclass="pre">pandas</span><spanclass="pre">as</span><spanclass="pre">pd</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">import</span><spanclass="pre">numpy</span><spanclass="pre">as</span><spanclass="pre">np</span></code>) and define
765
765
all variables you use in the example.</p>
766
766
</li>
767
-
<li><pclass="first">Try to avoid using random data.</p>
767
+
<li><pclass="first">Try to avoid using random data. However random data might be OK in some
768
+
cases, like if the function you are documenting deals with probability
769
+
distributions, or if the amount of data needed to make the function result
770
+
meaningful is too much, such that creating it manually is very cumbersome.
771
+
In those cases, always use a fixed random seed to make the generated examples
0 commit comments