Data wrangling: How data goes from raw to refined

 

Connecting state and local government leaders

Specialized software combines, formats and manages massive amounts of complex data for accurate and meaningful analysis.

A new approach is helping researchers speed the time it takes to prepare data for analysis -- a task that takes as much as 95 percent of workers’ time on an analytics project, according to some estimates.

Known as data wrangling, the methodology makes it easier for researchers to get data into a format that a software program can use for analyses, such as reports or visualizations such as graphs and 3D models. The process involves finding the best data – that's both accessible and usable -- and then "shaping and combining that data to facilitate the most accurate and meaningful analysis possible," according to a July report on the topic from the National Science and Technology Council.

Data wrangling is necessary because “the dramatic rise in our ability to collect data isn’t yet matched by our ability to support, analyze and manage it,” according to Mark Conrad, archives specialist at the National Archives and Records Administration’s Systems Engineering Division of the Office of Information Services. “We generate more data than we can possibly read or comprehend, and need a way to summarize and analyze the ‘right’ data in order to use this information effectively and efficiently,” he told GCN via email.

There’s no one way to wrangle data, Conrad said, because it depends on wide range of variables: the amount of data; the questions to be answered; the data available to address those questions; the amount of work needed to combine datasets; the software available; whether specialized hardware such as cloud or supercomputing is necessary to handle the volume or complexity of the data; and the audience for the analysis; among others.

“NARA uses data wrangling to support data-driven decision-making for everything from optimizing space utilization across our facilities, to improving our online customer service, to optimizing workflows in order to improve work unit performance,” Conrad said.

For instance, using testbed collections designed to simulate NARA’s electronic records holdings, the agency’s research partners at the Texas Advanced Computing Center extracted metadata from a collection of federal files. They used that metadata to make visualizations based on the agency of origin, file type and preservation concerns.

Similarly, researchers at the University of North Carolina-Chapel Hill -- who are now at the University of Maryland -- used software to detect files with geographic information, determined the geographic coverage of those files and presented findings on an interactive map. 

“Both would have been difficult -- if not impossible -- to do without data wrangling,” Conrad wrote.

Researchers at Stanford University and the University of California-Berkeley first used the term “data wrangling” when they created a machine learning-powered tool that would ease the problem of getting data into a required format. Within six months, it had been downloaded 30,000 times, and six years ago the researchers who created it, launched a company called Trifacta to commercialize the technology.

“Now they can do in clicks what used to take months,” Trifacta CEO Adam Wilson said. The tool uses algorithms to learn from the data and understand how users interact with it to provide intelligent recommendations.

One concern is that every user could wrangle data differently. For instance, if an agency has 126 analytics tools, the data shouldn’t be wrangled 126 times and ways, Wilson said. To avoid that, agencies should not embed data wrangling in end-user tools.

“You really want to have a platform-based approach to wrangling the data that ensures you can wrangle the data once and you can use it everywhere,” he said.

The Centers for Disease Control and Prevention used Trifacta’s Wrangler to understand an outbreak of HIV in rural Indiana. Data professionals were trying to make sense of medical records, police files and psychographic data -- much of it unstructured -- to find patterns.

Wrangler applies AI and machine learning to take the data from raw to refined and to infer what users are interested in as they manipulate it. The tool then gives immediate previews of what the data would look like if specific transformations or rules to clean the data are applied.

“What they found after going through all this was that there was a lot of urbanization that was happening in parts of Chicago that was causing migration of some individuals from the big city to these smaller towns,” Wilson said. "That was tied into opioid issues and issues around prostitution and needles, and these communities were ill-equipped to deal with some of these urban problems.”

In truth, data wrangling isn’t new, NARA’s Conrad added. The difference today is the sheer scale of the challenge.

“We have always had data wrangling of one sort or another,” he said. “In the past, data was periodically gathered manually, tabulated, and the aggregated data was summarized in a standardized report. Today, data is generated on a near-constant basis from multiple sources both internal (e.g., data from various applications used by staff) and external to NARA (e.g., web usage statistics, customer comments and survey responses). This data can be manipulated and combined (wrangled) and analyzed and visualized so decision-makers can understand the big picture of relevant activities in near ‘real time.’”

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.