nightroman/DataFrame

Cmdlets for Microsoft.Data.Analysis.DataFrame

★ 4Forks 1PowerShellGitHub ↗Compare

README

DataFrame

PowerShell cmdlets for Microsoft.Data.Analysis.DataFrame

This module requires PowerShell 7.4+

Install

The module is available at PSGallery and may be installed as:

Install-Module -Name DataFrame

Explore

Explore the available commands and help:

Import-Module -Name DataFrame
Get-Command -Module DataFrame

help about_DataFrame
help Import-DataFrame

Cmdlets

Import and export DataFrame data:

  • Import-DataFrame
  • Export-DataFrame
  • Read-DataFrame

Create and populate DataFrame:

  • New-DataFrame
  • Out-DataFrame
  • Add-DataFrameRow

Create DataFrame columns:

  • New-BooleanColumn
  • New-ByteColumn
  • New-CharColumn
  • New-DateTimeColumn
  • New-DecimalColumn
  • New-DoubleColumn
  • New-Int16Column
  • New-Int32Column
  • New-Int64Column
  • New-SingleColumn
  • New-StringColumn

Example

# create a new DataFrame for process names and memory
$df = New-DataFrame @(
    New-StringColumn Name
    New-Int64Column WS
)

# get processes and output to the DataFrame
Get-Process | Out-DataFrame $df

# top 10 processes by average used memory
$df.GroupBy('Name').Mean('WS').OrderBy('WS').Tail(10).ToTable()

See also

Contributors

nightromaneosfor

Issues