Learn practical skills, build real-world projects, and advance your career
Created 4 years ago
import pandas as pd
import numpy as np
r1 = np.arange(0, 18, 2)
r1
array([ 0, 2, 4, 6, 8, 10, 12, 14, 16])
ser = pd.Series(r1)
ser
0 0
1 2
2 4
3 6
4 8
5 10
6 12
7 14
8 16
dtype: int32
df = pd.DataFrame(r1.reshape(3, 3),columns=['A', 'B', 'C'])