Commit a5718ec1 authored by Francesco Poldi's avatar Francesco Poldi

updated types in pandas

parent 3aa6a709
......@@ -50,10 +50,16 @@ def _autoget(type):
def update(object, config):
global _type
try:
_type = ((object.type == "tweet")*"tweet" +
(object.type == "user")*"user")
except AttributeError:
#try:
# _type = ((object.__class__.__name__ == "tweet")*"tweet" +
# (object.__class__.__name__ == "user")*"user")
#except AttributeError:
# _type = config.Following*"following" + config.Followers*"followers"
if object.__class__.__name__ == "tweet":
_type = "tweet"
elif object.__class__.__name__ == "user":
_type = "user"
elif object.__class__.__name__ == "dict":
_type = config.Following*"following" + config.Followers*"followers"
if _type == "tweet":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment