Skip to content

Commit

Permalink
Pandas not mandatory anymore; moved pandas import only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
insomniacslk committed Sep 17, 2016
1 parent 772ecb8 commit c9a6c5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dublintraceroute/tracerouteresults.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pandas
import tabulate


Expand Down Expand Up @@ -44,6 +43,11 @@ def flatten(self):
return rows

def to_dataframe(self):
'''
Convert traceroute results to a Pandas DataFrame.
'''
# pandas is imported late because it does not compile yet on PyPy
import pandas
return pandas.DataFrame(self.flatten())

def pretty_print(self):
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
pygraphviz
tabulate
numpy
pandas

0 comments on commit c9a6c5b

Please sign in to comment.