Skip to content

Commit 1f7c2f5

Browse files
pandas-dev#39904: Add description to docstring example.
1 parent 7beb6f3 commit 1f7c2f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/frame.py

+2
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,8 @@ class DataFrame(NDFrame, OpsMixin):
524524
1 4 5 6
525525
2 7 8 9
526526
527+
Constructing DataFrame from a numpy ndarray that has labeled columns:
528+
527529
>>> data = np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)],
528530
... dtype=[("a", "i4"), ("b", "i4"), ("c", "i4")])
529531
>>> df3 = pd.DataFrame(data, columns=['c', 'a'])

0 commit comments

Comments
 (0)