Demo entry 6684415

Pandas内置str函数使用示例

   

Submitted by anonymous on Dec 15, 2017 at 09:03
Language: Python 3. Code size: 221 Bytes.

srcdata = 'D:\\nbll\\M8-tsb.csv'  
df00 = pd.read_csv(srcdata,encoding='GBK')  
df00.rename(columns={'自_流量(M)_Eutrancell':'日均流量'}, inplace = True)  
df00['eNodeBID'] = df00['CGI'].str.split('-',expand=True)[2]  
df00 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).