Skip to content

Instantly share code, notes, and snippets.

View sherlockhomeless's full-sized avatar
👽

sherlockhomeless

👽
View GitHub Profile
@sherlockhomeless
sherlockhomeless / pyxcel.py
Created December 2, 2020 09:06
Delete Columns/Rows from Excel Sheet in Python
#!/usr/bin/env python3
import pandas as pd
excel_file_path = 'modify.xlsx'
def read_excel(path: str):
return pd.read_excel(path)
e = read_excel(excel_file_path)
traceroute to 41.231.21.44 (41.231.21.44), 30 hops max, 60 byte packets
1 10.0.2.2 (10.0.2.2) 0.415 ms 0.172 ms 0.144 ms
2 10.0.0.1 (10.0.0.1) 1.414 ms 2.119 ms 3.697 ms
3 edunat1.zedat.fu-berlin.de (160.45.254.2) 3.491 ms 3.282 ms 3.075 ms
4 champus.router.fu-berlin.de (160.45.254.65) 3.265 ms 2.976 ms 2.827 ms
5 delos-te0-0-0.router.fu-berlin.de (160.45.252.101) 2.632 ms 3.603 ms 3.402 ms
6 cr-han2-te0-0-0-7-3-244.x-win.dfn.de (188.1.234.173) 7.320 ms 6.804 ms 8.019 ms
7 cr-fra2-be12.x-win.dfn.de (188.1.144.133) 12.526 ms 13.278 ms 13.445 ms
8 * * *
9 ae1-0.mil-cal-score-1-re0.interoute.net (89.202.146.89) 22.601 ms 22.865 ms 22.802 ms