### Install Rust Nightly with asdf Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Install the required Rust Nightly toolchain using `asdf` if you are using it as your version manager. ```sh asdf install rust nightly-2025-06-23 ``` -------------------------------- ### Install Rust Nightly Toolchain Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Install the required Rust Nightly toolchain using `rustup` for compiling the project from source. ```sh rustup toolchain install nightly-2025-06-23 ``` -------------------------------- ### Install Explorer in Mix Application Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Add the Explorer dependency to your application's mix.exs file. ```elixir def deps do [ {:explorer, "~> 0.11.1"} ] end ``` -------------------------------- ### Install Explorer in Elixir Script/Livebook Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Add the Explorer dependency to your project using Mix.install for Elixir scripts or Livebooks. ```elixir Mix.install([ {:explorer, "~> 0.11.1"} ]) ``` -------------------------------- ### Require DataFrame Module Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Use `require Explorer.DataFrame, as: DF` to load macro features and assign a shorter alias for convenience in examples. ```elixir require Explorer.DataFrame, as: DF ``` -------------------------------- ### Run Project CI and Cloud Integration Tests Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Execute the `mix ci` command for linting and formatting, `mix localstack.setup` to prepare for cloud tests, and `mix test --only cloud_integration` to run cloud integration tests. ```sh mix ci mix localstack.setup mix test --only cloud_integration ``` -------------------------------- ### Download Artifacts and Generate Checksums Source: https://github.com/elixir-explorer/explorer/blob/main/RELEASE.md This command downloads all precompiled NIF artifacts for the specified module and prints their checksums. Ensure the EXPLORER_BUILD environment variable is set. ```bash EXPLORER_BUILD=true mix rustler_precompiled.download Explorer.PolarsBackend.Native --all --print ``` -------------------------------- ### Force Local Build of Explorer Source: https://github.com/elixir-explorer/explorer/blob/main/README.md To force a local build of Explorer's native code, set the EXPLORER_BUILD environment variable to '1' and include :rustler as a dependency. Clean previous builds with 'mix deps.clean explorer' if necessary. ```elixir {:explorer, "~> 0.11.1", system_env: %{"EXPLORER_BUILD" => "1"}}, {:rustler, ">= 0.0.0"} ``` -------------------------------- ### Create DataFrame with new/2 Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Use `Explorer.DataFrame.new/2` to create a DataFrame from lists or series. This is useful for small experiments. ```elixir mountains = Explorer.DataFrame.new(name: ["Everest", "K2", "Aconcagua"], elevation: [8848, 8611, 6962]) ``` -------------------------------- ### Enable Legacy Artifacts in Explorer Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Set this application environment variable to true to enable legacy artifact variants if you encounter 'Illegal instruction' errors after compilation. This is useful for older CPUs. ```elixir config :explorer, use_legacy_artifacts: true ``` -------------------------------- ### Print DataFrame Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Display a DataFrame in a tabular format using `Explorer.DataFrame.print/2`. This function is helpful for visualizing the data. ```elixir Explorer.DataFrame.print(mountains) ``` -------------------------------- ### Remove Intermediate Builds Source: https://github.com/elixir-explorer/explorer/blob/main/RELEASE.md Before downloading artifacts and generating checksums, ensure any intermediate builds are removed to avoid conflicts. ```bash rm -rf native/explorer/target ``` -------------------------------- ### Create Explorer Series from List Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Create a new Explorer Series from a standard Elixir list. The series will have a single data type (dtype). ```elixir fruits = Explorer.Series.from_list(["apple", "mango", "banana", "orange"]) ``` -------------------------------- ### Sort Explorer Series Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Sort an existing Explorer Series alphabetically. This function returns a new, sorted series. ```elixir Explorer.Series.sort(fruits) ``` -------------------------------- ### Filter DataFrame by Mean Elevation Source: https://github.com/elixir-explorer/explorer/blob/main/README.md Filter a DataFrame to include rows where the 'elevation' column is greater than the mean elevation. This utilizes `Explorer.Query` features, requiring the `Explorer.DataFrame` module. ```elixir DF.filter(mountains, elevation > mean(elevation)) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.