Skip to content

Commit

Permalink
doc: update dsintro.rst to remove a warring
Browse files Browse the repository at this point in the history
To solve a warning in issue DOC: DeprecationWarning on "Intro to data structures" user guide #60490.
I have checked other parts of the page, and there are no such warnings.
  • Loading branch information
asdkfjsd authored Dec 6, 2024
1 parent a36c44e commit 2ee9180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/user_guide/dsintro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ This case is handled identically to a dict of arrays.

.. ipython:: python
data = np.zeros((2,), dtype=[("A", "i4"), ("B", "f4"), ("C", "a10")])
data = np.zeros((2,), dtype=[("A", "i4"), ("B", "f4"), ("C", "S10")])
data[:] = [(1, 2.0, "Hello"), (2, 3.0, "World")]
pd.DataFrame(data)
Expand Down

0 comments on commit 2ee9180

Please sign in to comment.