PowerShell cmdlets for Microsoft.Data.Analysis.DataFrame
This module requires PowerShell 7.4+
The module is available at PSGallery and may be installed as:
Install-Module -Name DataFrameExplore the available commands and help:
Import-Module -Name DataFrame
Get-Command -Module DataFrame
help about_DataFrame
help Import-DataFrameImport and export DataFrame data:
Import-DataFrameExport-DataFrameRead-DataFrame
Create and populate DataFrame:
New-DataFrameOut-DataFrameAdd-DataFrameRow
Create DataFrame columns:
New-BooleanColumnNew-ByteColumnNew-CharColumnNew-DateTimeColumnNew-DecimalColumnNew-DoubleColumnNew-Int16ColumnNew-Int32ColumnNew-Int64ColumnNew-SingleColumnNew-StringColumn
# 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()