Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions A 2019-2020/Week6_pandas1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down