From e2e2741935452250299a95554114f0be8f2fa188 Mon Sep 17 00:00:00 2001 From: Abhinav Jha <51792841+abhinav237@users.noreply.github.com> Date: Fri, 2 Oct 2020 11:09:32 +0530 Subject: [PATCH] Update Week6_pandas1.py --- A 2019-2020/Week6_pandas1.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/A 2019-2020/Week6_pandas1.py b/A 2019-2020/Week6_pandas1.py index 32e1233..9d17d60 100644 --- a/A 2019-2020/Week6_pandas1.py +++ b/A 2019-2020/Week6_pandas1.py @@ -11,14 +11,23 @@ # ## Pandas Series ! # A 1D array in numpy was called array !, which in pandas it is called a Series -# In[4]: - +# In[3]: S1 = pd.Series([1,2,3,4]) S2 = pd.Series([4,5,6, 0.1]) print(S2) +# In[4]: +# Converting a panda Series to a numpy array +S3=S1.to_numpy() +S4=S2.to_numpy() +S1.dtype +S2.dtype +S3.dtype +S4.dtype + + # The vectorized operations are exactly like numpy arrays !! # In[6]: