test
This commit is contained in:
1 parent
88624bc20a
commit
81d46a7d32
24 files changed
+1335
No files matched your search
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# I am also learning pandas, so some of this may be trivial
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
#converting back and forth between pandas series and numpy arrays
|
||||
|
||||
s = pd.Series([1,3,5,np.nan,6,8])
|
||||
s2 = np.array(s)
|
||||
|
||||
print(s)
|
||||
print(s2)
|
||||
|
||||
s3 = pd.Series(s2)
|
||||
|
||||
print(s3)
|
||||
|
||||
# https://pandas.pydata.org/docs/user_guide/10min.html
|
||||
|
||||
dates = pd.date_range("20130101",periods=6)
|
||||
data = np.random.randn(6,4)
|
||||
df = pd.DataFrame(data,index=dates,columns=["a","b","c","ddd"])
|
||||
print(df)
|
||||
|
||||
Reference in new issue
Block a user