728x90
반응형
In [4]:
import pandas as pd
import numpy as np
import random
In [13]:
A = pd.Series(np.random.randint(1,5,100))
B = pd.Series(np.random.randint(1,4,100))
C = pd.Series(np.random.randint(10000,30000,100))
In [17]:
SC = pd.concat([A,B,C],axis=1)
SC.head()
Out[17]:
In [19]:
SC.columns = ['bedrs','bathrs','price_sqr_meter']
SC.head()
Out[19]:
In [27]:
bigcolumn = pd.concat([A,B,C],axis=0)
bigcolumn
Out[27]:
In [22]:
len(bigcolumn)
Out[22]:
In [28]:
# bigcolumn.index = range(0,300)
# bigcolumn
# 위 아래 둘 다 가능
bigcolumn.reset_index(drop=True, inplace=True)
bigcolumn
Out[28]:
728x90
반응형