This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "name": "ABAP", | |
| "type": "programming", | |
| "extensions": [ | |
| ".abap" | |
| ] | |
| }, | |
| { | |
| "name": "AGS Script", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "A basic flake with a shell"; | |
| inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
| inputs.flake-utils.url = "github:numtide/flake-utils"; | |
| outputs = { self, nixpkgs, flake-utils }: | |
| flake-utils.lib.eachDefaultSystem (system: with nixpkgs.legacyPackages.${system}; | |
| { | |
| devShell = pkgs.mkShell { | |
| nativeBuildInputs = [ pkgs.bashInteractive ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import pandas as pd | |
| def sample_subset(df, n): | |
| """Sample a subset of a pandas DataFrame preserving the order of sampled rows | |
| Arguments | |
| --------- | |
| df (pandas.DataFrame) | |
| n (int): number of rows to be sampled |