This file contains 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 pandas as pd | |
import matplotlib.pyplot as plt | |
# Lendo o arquivo CSV e tratando possíveis erros | |
try: | |
data = pd.read_csv('data.csv') | |
except FileNotFoundError: | |
print("Arquivo não encontrado. Verifique o nome do arquivo e tente novamente.") | |
exit() |