Skip to content

Webcoderz patch 1#77

Closed
webcoderz wants to merge 81 commits intomasterfrom
webcoderz-patch-1
Closed

Webcoderz patch 1#77
webcoderz wants to merge 81 commits intomasterfrom
webcoderz-patch-1

Conversation

@webcoderz
Copy link
Copy Markdown
Collaborator

first patch that includes twint tweet to neo4j conversion

@webcoderz webcoderz requested review from bechbd and lmeyerov August 25, 2020 18:16
Comment thread modules/Neo4jDataAccess.py Outdated
self.tweetsandaccounts = """
UNWIND $tweets AS t
//Add the Tweet
//Add the Tweet
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of whitespace edits -- you may want to check your editor and start using git add -p to be more selective

Comment thread modules/Neo4jDataAccess.py Outdated
else:
return df.head(limit)
rdf = df.head(limit)
return rdf
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

limit can be None, causing this to fail

def save_twintdf_to_neo(self, df, job_name, job_id=None):

df = TwintPool().twint_df_to_neo4j_df(df)
df.drop(df.columns[df.columns.str.contains('unnamed', case=False)], axis=1, inplace=True)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnamed suggests there is a bug before this line is reached..

Comment thread modules/Neo4jDataAccess.py Outdated


except:
raise
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

raise Exception (...) ?

Comment thread modules/Neo4jDataAccess.py Outdated

except:
raise
url_df = pd.concat([df for df in url_params_lst], axis=0, ignore_index=True, sort=False)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pd.concat(url_params_lst, ignore_index=True, sort=False)

@webcoderz webcoderz closed this Sep 5, 2020
@webcoderz webcoderz deleted the webcoderz-patch-1 branch September 5, 2020 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants