Skip to content

Commit 3af0d5b

Browse files
authored
Enhance user guide with NumPy and Pandas info
Added explanation about NumPy array usage in Pandas.
1 parent 3a5b4c2 commit 3af0d5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/source/user_guide/10min.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ and labeled columns:
4949
df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list("ABCD"))
5050
df
5151
52+
Here, ``np.random.randn(6, 4)`` creates a 6×4 NumPy array of random numbers.
53+
Pandas can directly use NumPy arrays as input because it is built on top of NumPy.
54+
5255
Creating a :class:`DataFrame` by passing a dictionary of objects where the keys are the column
5356
labels and the values are the column values.
5457

0 commit comments

Comments
 (0)