Skip to content

Commit d5eec76

Browse files
committed
Fix docs
1 parent 660bba3 commit d5eec76

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pandas/core/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ def value_counts(
12061206
4.0 1
12071207
2.0 1
12081208
1.0 1
1209-
dtype: int64
1209+
dtype: Int64
12101210
12111211
With `normalize` set to `True`, returns the relative frequency by
12121212
dividing all values by the sum of values.
@@ -1230,7 +1230,7 @@ def value_counts(
12301230
(2.0, 3.0] 2
12311231
(0.996, 2.0] 2
12321232
(3.0, 4.0] 1
1233-
dtype: int64
1233+
dtype: Int64
12341234
12351235
**dropna**
12361236
@@ -1242,7 +1242,7 @@ def value_counts(
12421242
4.0 1
12431243
2.0 1
12441244
1.0 1
1245-
dtype: int64
1245+
dtype: Int64
12461246
"""
12471247
result = value_counts(
12481248
self,

pandas/tests/extension/base/methods.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_value_counts(self, all_data, dropna):
3535
)
3636

3737
expected = pd.Series([1 / len(other)] * len(other), index=result.index)
38-
tm.assert_series_equal(expected, result)
38+
self.assert_series_equal(expected, result)
3939

4040
def test_count(self, data_missing):
4141
df = pd.DataFrame({"A": data_missing})

web/pandas_web.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@
3434
import time
3535
import typing
3636

37-
import feedparser
3837
import jinja2
39-
import markdown
4038
import requests
4139
import yaml
4240

41+
import feedparser
42+
import markdown
43+
4344

4445
class Preprocessors:
4546
"""

0 commit comments

Comments
 (0)