Wolfram Research

Tweets by @WolframResearch (Datasets for Multiparadigm Data Science Course)

Source Notebook

These datasets are used in the example demonstrated in the "Build a Project Workflow" section of the "Multiparadigm Data Science" interactive course on Wolfram U

Details

The following information is available for each tweet in the dataset:
{ID, Text, Date, Hashtags, Location, Username, Name, ProfileImageThumbnail, RetweetCount, FavoriteCount, URL}

Examples

Basic Examples

Retrieve the resource:

In[1]:=
ResourceObject[
ResourceObject[
 "Tweets by @WolframResearch (Datasets for Multiparadigm Data Science \
Course)"]]
Out[1]=

Retrieve the default content::

In[2]:=
ResourceData[
ResourceObject[
 "Tweets by @WolframResearch (Datasets for Multiparadigm Data Science \
Course)"]]
Out[34]=

Additional Elements

Retrieve user data for the users mentioned in the tweets by WolframResearch:

In[35]:=
ResourceData[ResourceObject[
 "Tweets by @WolframResearch (Datasets for Multiparadigm Data Science \
Course)"], "UsersMentionedInWolframTweets"]
Out[36]=

Retrieve locations of the users mentioned in the tweets by WolframResearch (3 random locations):

In[37]:=
RandomSample[
 ResourceData[ResourceObject[
  "Tweets by @WolframResearch (Datasets for Multiparadigm Data \
Science Course)"], "LocationsOfUsersMentioned"], 3]
Out[37]=

Retrieve hashtags used by the users mentioned in the tweets by WolframResearch (3 random users):

In[38]:=
RandomSample[
 ResourceData[ResourceObject[
  "Tweets by @WolframResearch (Datasets for Multiparadigm Data \
Science Course)"], "HashtagsUsedByMentionedUsers"], 3]
Out[38]=

Retrieve a graph of users mentioning each other (3 random edges):

In[39]:=
RandomSample[
 ResourceData[ResourceObject[
  "Tweets by @WolframResearch (Datasets for Multiparadigm Data \
Science Course)"], "UserMentionGraph"], 3]
Out[39]=

Visualizations

Visualize a DateHistogram of tweets by Wolfram research:

In[40]:=
ResourceData[
ResourceObject[
  "Tweets by @WolframResearch (Datasets for Multiparadigm Data \
Science Course)"]][DateHistogram[#, "Year"] &, "Date"]
Out[54]=

Visualize a WordCloud of other users mentioned in the tweets by WolframResearch:

In[55]:=
ResourceData[
ResourceObject[
  "Tweets by @WolframResearch (Datasets for Multiparadigm Data \
Science Course)"]][Flatten /* WordCloud, "Usermentions"]
Out[55]=

Visualize the locations of the users mentioned in the tweets by WolframResearch:

In[56]:=
GeoHistogram[
 ResourceData[ResourceObject[
  "Tweets by @WolframResearch (Datasets for Multiparadigm Data \
Science Course)"], "LocationsOfUsersMentioned"], PlotLegends -> Automatic]
Out[56]=

Visualize a WordCloud of the hashtags used by these users:

In[57]:=
WordCloud[
 ResourceData[ResourceObject[
  "Tweets by @WolframResearch (Datasets for Multiparadigm Data \
Science Course)"], "HashtagsUsedByMentionedUsers"]]
Out[57]=

Analysis

Visualize users mentioning each other in their tweets in a graph:

In[58]:=
SimpleGraph[
 ResourceData[ResourceObject[
  "Tweets by @WolframResearch (Datasets for Multiparadigm Data \
Science Course)"], "UserMentionGraph"], VertexLabels -> Placed["Name", Tooltip], GraphLayout -> "RadialEmbedding", ImageSize -> Large]
Out[73]=

Wolfram U, "Tweets by @WolframResearch (Datasets for Multiparadigm Data Science Course)" from the Wolfram Data Repository (2020) 

Data Resource History

Source Metadata

Data Downloads

Publisher Information