Analyze Data with PowerShell | U.S. Presidential Election 2020 Dataset

preview_player
Показать описание
Most of my videos on PowerShell have centered around language techniques. Let's change gears a little bit and do something a bit more practical, like data analysis. While perusing the Internet, I discovered a New York Times API that provides 2020 U.S. election data in a JSON format. Let's use PowerShell to download that data locally and then load it and run some queries against it!

PowerShell natively offers a ConvertFrom-Json command. Quite simply, this command accepts a JSON string as input, and in return, it provides a PowerShell object exposing the various properties on the JSON data structure.

Where-Object can be used to filter PowerShell objects using a specified "filter script." The filter script is applied to each object in the pipeline.

Add-Member is a powerful command that enables you to add properties and methods to PowerShell objects. In this video, we'll use Add-Member to add a new calculated property to each object in an array. We'll take the UNIX timestamp in microseconds and turn it into a new property that contains a more human-friendly System.DateTime object.

Producer: Trevor Sullivan

#Microsoft #PowerShell #Analytics
Рекомендации по теме
Комментарии
Автор

Good presentation there. Loved seeing Powershell used as a quick slice and dice data canvassing tool. Opening .NET and PS was one of the smartest move MS has made in recent times.

brandonhunter
Автор

This is awesome! I'm trying to get into learning powershell. I've used bash for so long and now I have a windows computer and don't feel like doing any dual boot cheese. This seems really really powerful and intuitive to use.

dylanogden
Автор

Are you able to use your expertise to help settle this on going dispute regarding the election. ?

tessalister
Автор

amazing, I would like you to continue this video format the $data would be amazing and thanks for everything.

Joshuaa.z
Автор

First time viewer. From SAfrica
Am enjoying it.

johannaroets
Автор

You've attracted the crazies, lol.

Great overview.

bryanbridges
Автор

I love PoweShell. Thank you for all this great info

ladis
Автор

Yes pls the vote was corrupt. God bless you may you go from strength to strength. God bless you... from SAfrica

johannaroets
Автор

Well just what does the dats say in swing states ? Was it manipulated and by whoom ? Or as much information as you can see ?
E: I found this very interesting and informative .
Thanks

williamcollins
Автор

Hi
Should voting software have alogrtyhms
Surely it should be Candidate A or Candidate B and add them up

Digmen
Автор

I see Trump win in Yuba in both in person and absentee votes.

saimantam
Автор

Why do you look like that evil twitter guy??? Lmfao

EnderMe
Автор

5:00 in and still dont know where you're going.
Bye.

punkinhaidmartin
Автор

Meaningless jibber-jabber.
WHAT IS YOUR

RalphEllis
Автор

I came to this video as a powershell hater, read the comments and thought you were a Trump supporter. Watched the video and all you did was show people how to paw through data. We truly live in a stupid country. Makes me almost as angry as when I try to be productive with powershell, 🙂

Jholladay