Trump-owned Properties: Tracking Political Spending

Posted on Apr 30, 2019

Project GitHub | LinkedIn:   Niki   Moritz   Hao-Wei   Matthew   Oren

The skills we demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

The American public understands very little about President Donald Trump’s finances. From refusing to release his tax returns during the 2016 presidential campaign, to wildly inflating his self-worth based on however he feels, it’s difficult to truly understand our president’s assets and interests. That is a danger to democracy. This danger has led journalists, researchers, and watchdog groups across the country to try and uncover as much as they can about the president’s financial history.

One particular area of their interest is the payment by political organizations to Trump-owned businesses. Clearly, such entities spending money at properties and businesses owned by the president represents a conflict of interest. This would seemingly be why these organizations have fought tooth and nail in courts to make sure that these payments don’t leak to the public via reports or through Freedom of Information Act Requests.

The journalists at ProPublica have assembled one of the most complete datasets of such payments. They did an amazing job visualizing it in its totality. As a journalist myself, and as someone who is always on the lookout for new tools that can enhance my reporting, for my project, I wanted to create an app that would let me take a closer look at the data.

Journalism and Creating Tools

I’m very passionate about journalism. To that end, I’m also passionate about creating tools that make the lives of journalists easier, no matter their location or level of technical expertise. To that end, I wanted to make an application using a package in R called “Shiny”. I wanted the application’s user interface and data visualizations to be simple to understand and use. I structured my app in accordance with the five W’s: who, what, when, where, and why.

At the top of the sidebar of my application, I included a drop down menu where a user can select a political organization whose spending they want to examine. I also ask them to select a year in which the spending occurred. Underneath are three visualization tabs. One is devoted to displaying a chart of which Trump-owned organizations the political entity paid, one displays a chart for what purpose generally they were spending their money, and the final tab displays an interactive map and chart displaying where the organization was spending its money.

ProPublica’s data, found here, was very clean for the most part. The most relevant variables for my app were the date, location, purpose, who made the payment, and to whom the payment was made. I planned on adding an interactive map feature to the “Who” section of my application, so I went and found latitude and longitude data for each of the Trump-owned businesses who had been paid and added a variable there. I also added a solitary year variable for ease given that it would be referenced in one of my drop-down inputs on the sidebar of the app.

Dataset issue

The issue with this data set is included right up front when downloading it from ProPublica’s website. It’s by no means a complete representation of the spending at Trump properties. According to ProPublica’s site, many government agencies are still fighting requests to disclose spending at Trump properties. The dataset continues to be updated as they receive more observations.

Also, some of the data they gathered from different agencies was incomplete. The Secret Service and the Coast Guard protection details did not disclose their expenses. In addition, some federal spending details did not include transaction details.

Obviously, the first thing I would like to do in the future is to continue to update the dataset based on what ProPublica is able to find. Next, while I had originally intended to keep the data visualizations simple so as not to confuse anyone who used the app, I would like to give the user the option for more visualizations if they do so choose.

And while I had initially passed over doing a summary spending page in favor of breaking the data down by spender and by year, it would probably help to give context to a user who isn’t as familiar with the overall spending as I am.

Finally, I’d like to plot the map in the “where” section of my app differently. The Google API key I initially used is now broken and displays strangely within the app. I’ll certainly need to either use plotly maps instead or call Alphabet and trying to sort something out.

About Author

Christopher Castano

After graduating with a B.A. in History and Journalism from Georgetown University, Chris went to work in the digital media industry as a producer for a video-driven news website called Circa. After having been handed loads of data...
View all posts by Christopher Castano >

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI