I have a website hosted in aws ec2 (windows instance) which stopped loading since few days onwards no clue whatsoever, below the output of traceroute please help
Tracing route to 126news.com [18.221.68.117]
over a maximum of 30 hops:
1 3 ms 3 ms 1 ms WirelessAP [192.168.1.1]
2 6 ms 20 ms 3 ms 10.111.192.1
3 3 ms 3 ms 3 ms 10.229.0.13
4 3 ms 3 ms 4 ms broadband.actcorp.in [183.82.14.221]
5 3 ms 3 ms 6 ms 14.141.24.169.static-hyderabad.tcl.net.in [14.141.24.169]
6 * * * Request timed out.
7 33 ms 28 ms 29 ms ix-ae-4-2.tcore1.cxr-chennai.as6453.net [180.87.36.9]
8 65 ms 64 ms 68 ms if-ae-13-2.tcore1.svw-singapore.as6453.net [180.87.36.83]
9 100 ms 67 ms 70 ms if-ae-11-2.thar1.svq-singapore.as6453.net [180.87.98.37]
10 64 ms 66 ms 64 ms ae-6.r00.sngpsi05.sg.bb.gin.ntt.net [129.250.8.241]
11 64 ms 72 ms 64 ms ae-10.r20.sngpsi05.sg.bb.gin.ntt.net [129.250.7.18]
12 247 ms 240 ms 240 ms ae-8.r22.snjsca04.us.bb.gin.ntt.net [129.250.3.48]
13 243 ms 245 ms 249 ms ae-8.r21.chcgil09.us.bb.gin.ntt.net [129.250.5.16]
14 244 ms 244 ms 245 ms ae-2.r07.chcgil09.us.bb.gin.ntt.net [129.250.4.214]
15 249 ms 248 ms 249 ms ae-1.a01.chcgil09.us.bb.gin.ntt.net [129.250.5.94]
16 246 ms 252 ms 361 ms ae-2.amazon.chcgil09.us.bb.gin.ntt.net [129.250.201.106]
17 262 ms 284 ms 255 ms 52.95.62.122
18 261 ms 261 ms 262 ms 52.95.62.125
19 * * * Request timed out.
20 260 ms 263 ms 259 ms 54.239.46.161
21 256 ms 272 ms 258 ms 54.239.43.225
22 * * * Request timed out.
23 * * * Request timed out.
24 260 ms 258 ms 261 ms 52.95.1.234
25 255 ms 258 ms 255 ms 52.95.1.247
26 262 ms 259 ms 256 ms 52.95.1.106
27 259 ms 259 ms 260 ms 52.95.1.87
28 253 ms 253 ms 252 ms 52.95.3.142
29 * * * Request timed out.
30 * * * Request timed out.
Trace complete.
Related
I have to convert text files into csv's after processing the contents of the text file as pandas dataframe.
Below is the code i am using. out_txt is my input text file and out_csv is my output csv file.
df = pd.read_csv(out_txt, sep='\s', header=None, on_bad_lines='warn', encoding = "ANSI")
df = df.replace(r'[^\w\s]|_]/()|~"{}="', '', regex=True)
df.to_csv(out_csv, header=None)
If "on_bad_lines = 'warn'" is not decalred the csv files are not created. But if i use this condition those bad lines are getting skipped (obviously) with the warning
Skipping line 6: Expected 8 fields in line 7, saw 9. Error could possibly be due to quotes being ignored when a multi-char delimiter is used.
I would like to retain these bad lines in the csv. I have highlighted the bad lines detected in the below image (my input text file).
Below is the contents of the text file which is getting saved. In this content i would like to remove characters like #, &, (, ).
75062 220 8 6 110 220 250 <1
75063 260 5 2 584 878 950 <1
75064 810 <2 <2 456 598 3700 <1
75065 115 5 2 96 74 5000 <1
75066 976 <5 2 5 68 4200 <1
75067 22 210 4 348 140 4050 <1
75068 674 5 4 - 54 1130 3850 <1
75069 414 5 y) 446 6.6% 2350 <1
75070 458 <5 <2 548 82 3100 <1
75071 4050 <5 2 780 6430 3150 <1
75072 115 <7 <1 64 5.8% 4050 °#&4«x<i1
75073 456 <7 4 46 44 3900 <1
75074 376 <7 <2 348 3.8% 2150 <1
75075 378 <6 y) 30 40 2000 <1
I would split on \s later with str.split rather than read_csv :
df = (
pd.read_csv(out_txt, header=None, encoding='ANSI')
.replace(r'[^\w\s]|_]/()|~"{}="', '', regex=True)
.squeeze().str.split(expand=True)
)
Another variant (skipping everything that comes in-between the numbers):
df = (
pd.read_csv(out_txt, header=None, encoding='ANSI')
[0].str.findall(r"\b(\d+)\b"))
.str.split(expand=True)
)
Output :
print(df)
0 1 2 3 4 5 6 7
0 375020 1060 115 38 440 350 7800 1
1 375021 920 80 26 310 290 5000 1
2 375022 1240 110 28 460 430 5900 1
3 375023 830 150 80 650 860 6200 1
4 375024 185 175 96 800 1020 2400 1
5 375025 680 370 88 1700 1220 172 1
6 375026 550 290 72 2250 1460 835 2
7 375027 390 120 60 1620 1240 158 1
8 375028 630 180 76 820 1360 180 1
9 375029 460 280 66 380 790 3600 1
10 375030 660 260 62 11180 1040 300 1
11 375031 530 200 84 1360 1060 555 1
tOP
boT 0 29.99 30 60 60 89 90 1000
0.250 Hold Hold 40 40 60 60 80 80
0.290 Hold Hold 40 40 60 60 80 80
0.300 Hold Hold 60 60 80 80 110 110
0.340 Hold Hold 60 60 80 80 110 110
0.350 Hold Hold 76 76 110 110 150 150
0.399 Hold Hold 76 76 110 110 150 150
0.400 Hold Hold 90 90 130 130 180 180
0.449 Hold Hold 90 90 130 130 180 180
0.450 Hold Hold 100 100 160 160 210 210
0.490 Hold Hold 100 100 160 160 210 210
0.500 Hold Hold 130 130 190 190 250 250
0.540 Hold Hold 130 130 190 190 250 250
0.550 Hold Hold 140 140 210 210 280 280
0.590 Hold Hold 140 140 210 210 280 280
0.600 Hold Hold 250 250 375 375 500 500
this is the data table I used
=INDEX('sheet1'!$B$3:$I$18,MATCH(boT,'sheet1'!A$4:$A$18,0),MATCH($K$4,'sheet1'!$B$3:$I$3,0))
I thought 0 would give the exact match but if I hit a bot of 0.450 and a top of 60 it should be 100 but I'm getting 90 so one level below each time it hits one of the break points.
Hi I'm trying to create a readline loop and then print it out individually with a format but everytime i do it just repeats itself.
here is my code:
LF = open('fees.txt', 'r')
print('Now the final table\n')
print("Airline", format("1st bag",">15"),format("2nd bag",">15"), \
format("Change Fee",">15"),format("Other Fee",">15"), \
format("Feel Like",">15"),'\n')
line = LF
while line != '':
line = str(line)
line = LF.readline()
line = line.rstrip('\n')
print(line, format(line,'>10'),format(line,'>15'), format(line,'>15'), \
format(line,'>15'), format(line,'>15'),'\n')
LF.close()
print('===================================================\n')
and the result always turns like this:
Now the final table
Airline 1st bag 2nd bag Change Fee Other Fee Feel Like
Southwest Southwest Southwest Southwest Southwest Southwest
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Yes! Yes! Yes! Yes! Yes! Yes!
JetBlue JetBlue JetBlue JetBlue JetBlue JetBlue
20 20 20 20 20 20
35 35 35 35 35 35
75 75 75 75 75 75
125 125 125 125 125 125
Yikes Yikes Yikes Yikes Yikes Yikes
Alaska Airlines Alaska Airlines Alaska Airlines Alaska Airlines Alaska Airlines Alaska Airlines
25 25 25 25 25 25
25 25 25 25 25 25
125 125 125 125 125 125
155 155 155 155 155 155
Ooof Ooof Ooof Ooof Ooof Ooof
Delta Delta Delta Delta Delta Delta
25 25 25 25 25 25
35 35 35 35 35 35
200 200 200 200 200 200
150 150 150 150 150 150
We Lost Track We Lost Track We Lost Track We Lost Track We Lost Track We Lost Track
United United United United United United
25 25 25 25 25 25
35 35 35 35 35 35
200 200 200 200 200 200
250 250 250 250 250 250
Whaaaaat? Whaaaaat? Whaaaaat? Whaaaaat? Whaaaaat? Whaaaaat?
Am. Airlines Am. Airlines Am. Airlines Am. Airlines Am. Airlines Am. Airlines
25 25 25 25 25 25
35 35 35 35 35 35
200 200 200 200 200 200
205 205 205 205 205 205
Arrrgh! Arrrgh! Arrrgh! Arrrgh! Arrrgh! Arrrgh!
Spirit Spirit Spirit Spirit Spirit Spirit
30 30 30 30 30 30
40 40 40 40 40 40
100 100 100 100 100 100
292 292 292 292 292 292
Really?? Really?? Really?? Really?? Really?? Really??
===================================================
how do I fix it that it would turn out like this.
Southwest 0 0 0 0 Yes !
Jetblue 20 35 75 125 Yikes!
and so on and so forth.
Date Issue redmeption App Date Issue redmeption App
21-Nov 891 200 523 28-Nov 660 179 302
22-Nov 607 125 423 29-Nov 712 165 420
23-Nov 456 165 422 30-Nov 499 128 331
24-Nov 510 115 391 1-Dec 596 170 392
25-Nov 525 120 400 2-Dec 573 169 397
26-Nov 585 158 396 3-Dec 450 120 350
27-Nov 582 88 410 4-Dec 650 150 360
Try creating you chart with the x & y axis data then using the "add data" function in the chart menu.
I am working in excel using SUMIF formula, my data is as follows:
Region Opr Qty Cost Combo(col B&A)
192 114 50 500 104192
192 104 453 548 104192
192 114 125 54654 114192
192 114 155 1545 114192
192 124 12 1553 124192
192 134 12222 1554545 134192
192 174 256 15478 174192
192 104 12 1555 104192
192 104 210 1156 104192
192 114 47 448953 114192
192 114 29 59479 114192
192 124 124 32451 124192
192 134 114 290240 134192
4192 10 210 115656 104192
4192 10 47 44896 104192
4192 11 29 12866 114192
4192 11 549 290240 114192
4192 12 124 59480 124192
4192 13 114 61343 134192
4192 17 310 45339 174192
4192 10 56 32451 104192
4192 10 103 82483 104192
4192 11 685 111380 114192
4192 11 646 201858 114192
4192 12 26 6489 124192
4192 13 87 44543 134192
If you see the last column it's giving same combination result but the operator and region are not always the same. I want to do SUMIF against Region which is throwing wrong values.
You can try SUMPRODUCT:
=SUMPRODUCT(((B2:B27&A2:A27)*1<>E2:E27)*1)
If the concatenation of column B to A is not equal to the Combo, count as 1, then add all the 1 together in SUMPRODUCT.
Change the range accordingly.
The *1 convert any text to number.