Python For Telco Network Performance Analysis
Python For Telco Network Performance Analysis
import matplotlib
import pandas as pd
lte_data = pd.read_excel(r"C:\Users\DriveTest\Desktop\Python\LTE
PERFORMANCE.xlsx")
lte_data.head(5)
lte_data.describe()
34249.033036
std 3548.206405 413.020160 1627.632311 8638.841052
16054.653895
min 0.000000 0.000000 36.400000 766.400000
0.000000
25% 1909.761382 97.205243 1522.144154 10814.523171
22793.000000
50% 3649.550071 222.347059 2199.790257 14956.279935
32025.000000
75% 5958.314010 441.600268 3120.563488 21232.982196
42897.000000
max 27102.480128 5865.054931 18278.622791 75977.438936
133814.000000
lte_data['Time'] = pd.DatetimeIndex(lte_data['Date'])
lte_data.head(5)
lte_data['Time'] = lte_data['Time'].dt.time
lte_data.head(5)
0.613141
3 39754.0 18632.0 92.425 1.304984
0.837264
4 39827.0 14043.0 86.525 1.355926
1.258182
lte_data['Date'] = lte_data['Date'].dt.date
lte_data.head(5)
lte_data.head(5)
lte_data.head(5)
lte_data.shape
(7053, 15)
lte_data.head(5)
1.258182
plt.figure(figsize=(12,8))
sns.distplot(lte_data['dlvolume'],color='red')
<matplotlib.axes._subplots.AxesSubplot at 0xb7b04c8>
plt.figure(figsize=(12,8))
sns.distplot(lte_data['dlvolume'],color='red',bins=20)
<matplotlib.axes._subplots.AxesSubplot at 0xc193f48>
itelcotech
plt.figure(figsize=(12,8))
sns.distplot(lte_data['dlvolume'],color='red',hist=False)
<matplotlib.axes._subplots.AxesSubplot at 0xbfb47c8>
plt.figure(figsize=(12,8))
sns.distplot(lte_data['cqi'],bins=20,color='blue')
itelcotech
<matplotlib.axes._subplots.AxesSubplot at 0x936d448>
plt.figure(figsize=(12,8))
sns.distplot(lte_data['cqi'],bins=20,color='blue',hist=False)
<matplotlib.axes._subplots.AxesSubplot at 0x9708ec8>
itelcotech
plt.figure(figsize=(12,8))
sns.distplot(lte_data['cqi'],bins=20,color='blue',hist=False)
plt.title('CQI PLOT')
plt.show()
itelcotech
plt.figure(figsize=(12,8))
sns.distplot(lte_data['dlvolume'],color='red',bins=20)
plt.title('DL VOLUME')
plt.show()
plt.figure(figsize=(12,8))
sns.distplot(lte_data['spectraleffdl'],bins=20,color='green')
plt.title('SPECTRAL EFFICIENCY')
plt.show()
itelcotech
lte_data[['spectraleffdl','dlvolume']].corr()
spectraleffdl dlvolume
spectraleffdl 1.000000 0.180967
dlvolume 0.180967 1.000000
plt.figure(figsize=(12,8))
sns.kdeplot(lte_data['spectraleffdl'],color='magenta',shade=True)
plt.title('SPECTRAL EFFICIENCY')
plt.show()
itelcotech
lte_data.corr()
ofdmsymboluti
dlvolume -0.113851
ulvolume -0.030847
ulthroughput -0.026066
dlthroughput -0.133939
maxdlthroughput -0.170622
maxulthroughput -0.058356
prbuti -0.009260
spectraleffdl 0.010278
spectralefful -0.013844
ueperttidl -0.021676
ueperttiul 0.015387
cqi 0.081726
ofdmsymboluti 1.000000
itelcotech
plt.figure(figsize=(12,8))
sns.scatterplot(x='dlthroughput',y='spectraleffdl',data=lte_data,s=120
)
plt.title('Throughput Vs efficiency')
plt.show()
plt.figure(figsize=(12,8))
sns.scatterplot(x='prbuti',y='spectraleffdl',data=lte_data,color='g',s
=100)
plt.title('PRB uti Vs Efficiency')
plt.show()
itelcotech
plt.figure(figsize=(12,8))
sns.scatterplot(x='prbuti',y='ueperttidl',s=100,color='blue',data=lte_
data)
plt.title('PRB UTI Vs UE/TTI')
plt.show()
itelcotech
plt.figure(figsize=(12,8))
sns.scatterplot(x='prbuti',y='dlvolume',data=lte_data,s=90,hue='spectr
aleffdl')
<matplotlib.axes._subplots.AxesSubplot at 0x941e908>
itelcotech
plt.figure(figsize=(12,8))
sns.scatterplot(x='prbuti',y='dlvolume',data=lte_data,s=90,hue='dlthro
ughput',color='green')
<matplotlib.axes._subplots.AxesSubplot at 0xcd8a748>
plt.figure(figsize=(12,8))
sns.scatterplot(x='dlthroughput',y='dlvolume',data=lte_data,s=90,hue='
prbuti',color='green')
<matplotlib.axes._subplots.AxesSubplot at 0xcd89348>
itelcotech
sns.regplot(x='spectraleffdl',y='dlthroughput',data=lte_data)
<matplotlib.axes._subplots.AxesSubplot at 0x9406fc8>
sns.regplot(x='spectraleffdl',y='ueperttidl',data=lte_data)
<matplotlib.axes._subplots.AxesSubplot at 0x110b7e08>
itelcotech
sns.regplot(x='dlthroughput',y='ueperttidl',data=lte_data)
<matplotlib.axes._subplots.AxesSubplot at 0xd8b1d88>
sns.jointplot(x='prbuti',y='dlvolume',data=lte_data,kind='reg')
<seaborn.axisgrid.JointGrid at 0x10e79808>
itelcotech
sns.jointplot(x='prbuti',y='dlthroughput',data=lte_data,kind='kde')
<seaborn.axisgrid.JointGrid at 0xe31f088>
itelcotech
sns.jointplot(x='prbuti',y='dlthroughput',data=lte_data,kind='hex')
<seaborn.axisgrid.JointGrid at 0xe2a79c8>