<jupyter_start><jupyter_text>A **escolha** da linguagem de programação a ser
utilizada em um projeto leva em conta diversos
aspectos
- tempo de execução de um programa
- paradigma explorado
- reúso de traballho
- flexibilidade Definindo os locais de arquivo<jupyter_code>localDataSet_ratings = "https://raw.githubusercontent.com/alura-cursos/introducao-a-data-science/master/aula1.2/ratings.csv"
localDataSet_movies = "https://raw.githubusercontent.com/alura-cursos/introducao-a-data-science/master/aula4.1/movies.csv"
import pandas as pd
df_ratings = pd.read_csv(localDataSet_ratings)
df_movies = pd.read_csv(localDataSet_movies)
df_movies.head()
df_ratings.head()
df_ratings["rating"].unique()
df_ratings.describe()
import seaborn as sns
print(sns.__version__)
df_ratings.rating.plot(kind='hist')
sns.boxplot(df_ratings.rating)<jupyter_output>/usr/local/lib/python3.7/dist-packages/seaborn/_decorators.py:43: FutureWarning: Pass the following variable as a keyword arg: x. From version 0.12, the only valid positional argument will be `data`, and passing other arguments without an explicit keyword will result in an error or misinterpretation.
  FutureWarning<jupyter_text>Analisando informações de filmes<jupyter_code>medias_por_filme = df_ratings.groupby("movieId").mean().rating
medias_por_filme.head()
medias_por_filme.plot(kind='hist')
import matplotlib.pyplot as plt

plt.figure(figsize=(5,8))
sns.boxplot(y=medias_por_filme)
sns.distplot(medias_por_filme)<jupyter_output>/usr/local/lib/python3.7/dist-packages/seaborn/distributions.py:2557: FutureWarning: `distplot` is a deprecated function and will be removed in a future version. Please adapt your code to use either `displot` (a figure-level function with similar flexibility) or `histplot` (an axes-level function for histograms).
  warnings.warn(msg, FutureWarning)
{'fraction_non_alphanumeric': 0.10005437737901034, 'fraction_numerical': 0.010331702011963024, 'mean_word_length': 6.449392712550607, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '607185', 'license': 'MIT', 'n_tokens_mistral': 645, 'n_tokens_neox': 634, 'n_words': 143, 'path': 'Sem2/COM200_Aula3Univesp.ipynb', 'repo_name': 'wecchi/univesp_com200', 'size': '1839'}