Created
August 19, 2017 17:10
-
-
Save lockefox/331c668b7aae520b3c89dd4f26371b1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymongo | |
import pandas as pd | |
conn = pymongo.MongoClient(MONGO_CONNECTION_STRING) | |
exclude_data = {'_id': False, 'attackers': False, 'items': False} | |
raw_data = list(conn.db.zkb.find({}, projection=exclude_data)) | |
kill_df = pd.DataFrame(raw_data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
killID | killTime | moonID | position | solarSystemID | victim | zkb | |
---|---|---|---|---|---|---|---|
64158479 | 2017-08-19 16:28:48 | 0 | {'y': -327762003.54411,...} | 30000157 | {'shipTypeID': 583,...} | {'locationID': 40009948,...} | |
64158462 | 2017-08-19 16:27:14 | 0 | {'y': -13468995620.414,...} | 30001398 | {'shipTypeID': 17476,...} | {'locationID': 50000196,...} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment