Home Explore Blog CI



nushell

16th chunk of `book/dataframes.md`
49852fae55a93d85b87bf9fac28c71291672a2522020b1090000000100000fd0
| polars concat-str      | any                   | Creates a concat string expression.                                                              |                         |
| polars concatenate     | dataframe             | Concatenates strings with other array.                                                           |                         |
| polars contains        | dataframe             | Checks if a pattern is contained in a string.                                                    |                         |
| polars count           | expression            | Creates a count expression.                                                                      |                         |
| polars count-null      | dataframe             | Counts null values.                                                                              |                         |
| polars cumulative      | dataframe             | Cumulative calculation for a series.                                                             |                         |
| polars datepart        | expression            | Creates an expression for capturing the specified datepart in a column.                          |                         |
| polars drop            | dataframe             | Creates a new dataframe by dropping the selected columns.                                        | drop                    |
| polars drop-duplicates | dataframe             | Drops duplicate values in dataframe.                                                             |                         |
| polars drop-nulls      | dataframe             | Drops null values in dataframe.                                                                  |                         |
| polars dummies         | dataframe             | Creates a new dataframe with dummy variables.                                                    |                         |
| polars explode         | expression, dataframe | Explodes a dataframe or creates a explode expression.                                            |                         |
| polars expr-not        | expression            | Creates a not expression.                                                                        |                         |
| polars fetch           | dataframe             | Collects the lazyframe to the selected rows.                                                     |                         |
| polars fill-nan        | dataframe             | Replaces NaN values with the given expression.                                                   |                         |
| polars fill-null       | dataframe             | Replaces NULL values with the given expression.                                                  |                         |
| polars filter          | dataframe             | Filter dataframe based in expression.                                                            |                         |
| polars filter-with     | dataframe             | Filters dataframe using a mask or expression as reference.                                       |                         |
| polars first           | expression, dataframe | Show only the first number of rows or create a first expression                                  | first                   |
| polars flatten         | expression, dataframe | An alias for polars explode.                                                                     |                         |
| polars get             | dataframe             | Creates dataframe with the selected columns.                                                     | get                     |
| polars get-day         | dataframe             | Gets day from date.                                                                              |                         |
| polars get-hour        | dataframe             | Gets hour from date.                                                                             |                         |

Title: Polars Dataframe Commands (Continued)
Summary
This section details more Polars dataframe commands, including functions for string manipulation (`concat-str`, `concatenate`, `contains`), data aggregation (`count`, `count-null`, `cumulative`), date part extraction (`datepart`), data filtering and cleaning (`drop`, `drop-duplicates`, `drop-nulls`, `fill-nan`, `fill-null`, `filter`, `filter-with`), data manipulation (`dummies`, `explode`, `flatten`), data selection (`fetch`, `first`, `get`), and date extraction (`get-day`, `get-hour`), along with their descriptions and corresponding Nushell equivalents where applicable.