Skip to content

Instantly share code, notes, and snippets.

@codeboy5
Last active June 18, 2019 16:14
Show Gist options
  • Save codeboy5/d0f7491794802138e97f77b6c47ccb25 to your computer and use it in GitHub Desktop.
Save codeboy5/d0f7491794802138e97f77b6c47ccb25 to your computer and use it in GitHub Desktop.
Extract Wifi Data
import numpy as np
import pandas as pd
myList = []
for line in open("./02Wifi.txt"):
row = line.split(",")
sample = [row[0], row[1], float(row[4])]
myList.append(sample)
myList = np.array(myList)
pd.DataFrame(myList, columns=["Name", "BSSID", "RSSI"]).to_csv(
"02Wifi.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment