Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "cells": [
- {
- "cell_type": "code",
- "execution_count": 6,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "d1 => 24.21590386502226\n",
- "d2 => 265.0744046489589\n"
- ]
- }
- ],
- "source": [
- "import numpy as np\n",
- "\n",
- "# Create 10 random data between 0 - 100.\n",
- "d1 = np.random.randint(0, 100, 10)\n",
- "\n",
- "# Create 10 random data between 0 - 1000.\n",
- "d2 = np.random.randint(0, 1000, 10)\n",
- "\n",
- "sd1 = np.std(d1)\n",
- "sd2 = np.std(d2)\n",
- "\n",
- "print(\"d1 => \", sd1)\n",
- "print(\"d2 => \", sd2)"
- ]
- }
- ],
- "metadata": {
- "kernelspec": {
- "display_name": "Python 3",
- "language": "python",
- "name": "python3"
- },
- "language_info": {
- "codemirror_mode": {
- "name": "ipython",
- "version": 3
- },
- "file_extension": ".py",
- "mimetype": "text/x-python",
- "name": "python",
- "nbconvert_exporter": "python",
- "pygments_lexer": "ipython3",
- "version": "3.6.8"
- }
- },
- "nbformat": 4,
- "nbformat_minor": 2
- }
Add Comment
Please, Sign In to add comment