CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Views: 17622
Kernel: Python 2 (SageMath)
import pandas as pd import numpy as np import matplotlib.pyplot as plt
s = pd.Series([1,3,5,np.nan,7,9]) s
0 1.0 1 3.0 2 5.0 3 NaN 4 7.0 5 9.0 dtype: float64
dates = pd.date_range('20130101', periods=6) dates
DatetimeIndex(['2013-01-01', '2013-01-02', '2013-01-03', '2013-01-04', '2013-01-05', '2013-01-06'], dtype='datetime64[ns]', freq='D')
df = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD')) df