Skip to content

Commit 21a8213

Browse files
authored
Merge pull request #70 from pandas-dev/master
Sync Fork from Upstream Repo
2 parents 7de1f5b + 183129f commit 21a8213

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

pandas/_libs/parsers.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ cdef class TextReader:
701701
char *word
702702
object name, old_name
703703
int status
704-
uint64_t hr, data_line
704+
uint64_t hr, data_line = 0
705705
char *errors = "strict"
706706
StringPath path = _string_path(self.c_encoding)
707707

pandas/_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ def assert_series_equal(
11061106
check_categorical : bool, default True
11071107
Whether to compare internal Categorical exactly.
11081108
check_category_order : bool, default True
1109-
Whether to compare category order of internal Categoricals
1109+
Whether to compare category order of internal Categoricals.
11101110
11111111
.. versionadded:: 1.0.2
11121112
obj : str, default 'Series'

pandas/core/arrays/sparse/array.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,16 @@ class SparseArray(PandasObject, ExtensionArray, ExtensionOpsMixin):
255255
Methods
256256
-------
257257
None
258+
259+
Examples
260+
--------
261+
>>> from pandas.arrays import SparseArray
262+
>>> arr = SparseArray([0, 0, 1, 2])
263+
>>> arr
264+
[0, 0, 1, 2]
265+
Fill: 0
266+
IntIndex
267+
Indices: array([2, 3], dtype=int32)
258268
"""
259269

260270
_pandas_ftype = "sparse"

0 commit comments

Comments
 (0)