Comece criando o banco de dados de cinema
:play movie-graph
Em seguida, Faça:
| vsini | cluster | |
|---|---|---|
| 57.9878 | Trumpler 14 | |
| 65.384 | Trumpler 14 | |
| 171.073 | Trumpler 14 | |
| 38.8181 | Trumpler 14 | |
| 35.236 | Trumpler 14 | |
| 43.879 | Trumpler 14 | |
| 382.417 | Trumpler 14 | |
| 139.456 | Trumpler 14 | |
| 35.8049 | Trumpler 14 |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """Minimal python commad line.""" | |
| import sys | |
| import argparse | |
| import logging |
| def get_closing_index(string, index): | |
| """ | |
| Get position of closing bracket of a opening | |
| bracket given by `index`. | |
| Parameters | |
| ---------- | |
| string: str; | |
| Input text. |
| from math import sqrt | |
| def get_distance(first_coord, second_coord): | |
| """ | |
| Get the distance between two points in the cartesian plane. | |
| Parameters | |
| ---------- | |
| first_coord: tuple |
| def IsAlmostPalindrome(word): | |
| """ | |
| Check if the word is or almost is a palindrome. | |
| To be almost a palindrome, we would need to change | |
| only one character. | |
| Parameters | |
| ---------- | |
| def MostPopularNumber(array, array_length=None): | |
| """ | |
| Get the most frequent number from an array. | |
| If there arre two or more numbers that appear | |
| the same number of times, return the lowest. | |
| Parameters | |
| ---------- | |
| def is_balanced(s): | |
| """ | |
| Check if a string has balanced brackets. | |
| Parameters | |
| ---------- | |
| s: str | |
| String to be checked. | |
| """ | |
| Cria grafico de barras com os salarios para carreiras na area de dados. | |
| Os valores forma obtidos no LoveMondays | |
| author: Gustavo Braganca ([email protected]) | |
| """ | |
| import matplotlib.pyplot as plt | |
| from collections import OrderedDict |