### Interactive Joinery JavaScript Shell Operations Source: https://github.com/cardillo/joinery/blob/master/README.md This snippet demonstrates how to launch the Joinery interactive JavaScript shell from the command line and perform basic DataFrame operations within it. It includes creating a new DataFrame, adding a column, appending data, and displaying the DataFrame's contents. ```Bash $ java -jar joinery-dataframe-1.10-jar-with-dependencies.jar shell ``` ```JavaScript df = new DataFrame() df.add("value") [10, 20, 30].forEach(function(val) { df.append([val]) }) df ``` -------------------------------- ### Display Joinery DataFrame in GUI Window Source: https://github.com/cardillo/joinery/blob/master/README.md This Bash command demonstrates how to use the `show` subcommand of the `joinery.DataFrame` application to display tabular data from a specified CSV file (`data.csv`) in a graphical user interface window. ```Bash $ java joinery.DataFrame show data.csv ``` -------------------------------- ### Joinery DataFrame Command Line Interface Usage Source: https://github.com/cardillo/joinery/blob/master/README.md This Bash command shows the general command-line interface usage for the `joinery.DataFrame` application. It lists the available subcommands such as `compare`, `plot`, `show`, and `shell`, along with an optional `csv-file` argument. ```Bash $ java joinery.DataFrame usage: joinery.DataFrame [compare|plot|show|shell] [csv-file ...] ``` -------------------------------- ### Load DataFrame from CSV URL in Rhino Scripting Source: https://github.com/cardillo/joinery/blob/master/README.md Loads a DataFrame by reading data from a remote CSV file URL. This initializes the DataFrame with historical stock data for Apple. ```Rhino Scripting df = DataFrame.readCsv("https://www.quandl.com/api/v1/datasets/GOOG/NASDAQ_AAPL.csv") ``` -------------------------------- ### Plot Joinery DataFrame as Chart Source: https://github.com/cardillo/joinery/blob/master/README.md This Bash command illustrates how to use the `plot` subcommand of the `joinery.DataFrame` application to visualize numeric data from a specified CSV file (`data.csv`) as a chart. ```Bash $ java joinery.DataFrame plot data.csv ``` -------------------------------- ### Inspect DataFrame Column Types in Rhino Scripting Source: https://github.com/cardillo/joinery/blob/master/README.md Retrieves and displays the data types of each column in the DataFrame. The output shows the corresponding Java classes for the data. ```Rhino Scripting df.types() ``` -------------------------------- ### Add Joinery Maven Dependency Source: https://github.com/cardillo/joinery/blob/master/README.md This XML snippet provides the necessary Maven dependency configuration to include the Joinery DataFrame library in a Java project. It specifies the group ID, artifact ID, and version for the library, allowing Maven to manage the project's dependencies. ```XML sh.joinery joinery-dataframe 1.10 ``` -------------------------------- ### Plot DataFrame Data as Area Chart in Rhino Scripting Source: https://github.com/cardillo/joinery/blob/master/README.md Illustrates how to visualize DataFrame data using a plotting function. The `plot()` method, with `PlotType.AREA`, generates an area chart from the DataFrame's contents, typically chained. ```Rhino Scripting .plot(PlotType.AREA) ``` -------------------------------- ### Analyze FizzBuzz results with Joinery Java Source: https://github.com/cardillo/joinery/blob/master/README.md This Java snippet demonstrates how to use Joinery's DataFrame API to perform a grouped count on data, such as analyzing the frequency of 'Fizz', 'Buzz', and 'FizzBuzz' values. It groups by the 'value' column, counts occurrences, sorts by number in descending order, and takes the top 3 results. ```Java df.groupBy("value") .count() .sortBy("-number") .head(3) ``` -------------------------------- ### Sort DataFrame by Date Column in Rhino Scripting Source: https://github.com/cardillo/joinery/blob/master/README.md Sorts the DataFrame rows based on the 'Date' column in ascending order, reordering the dataset chronologically. ```Rhino Scripting df.sortBy("Date") ``` -------------------------------- ### Retain Specific Columns in DataFrame in Rhino Scripting Source: https://github.com/cardillo/joinery/blob/master/README.md Filters the DataFrame to keep only specified columns. The `retain()` method creates a new DataFrame containing only the 'Close' column, effectively dropping all other columns, typically chained. ```Rhino Scripting .retain("Close") ``` -------------------------------- ### Reindex DataFrame with Date Column in Rhino Scripting Source: https://github.com/cardillo/joinery/blob/master/README.md Reindexes the DataFrame using the 'Date' column as the new row index. This operation transforms the DataFrame's structure for easier time-series analysis, typically chained after a sort operation. ```Rhino Scripting .reindex("Date") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.