1 + 4
variable = 'eres incfreible'
variable
!pvd
!ls
!pip install session-info
import session_info
session_info.show()
!cat drive/MyDrive/DM/iris.csv
!ls /datasets/mydrive
!cat /datasets/mydrive/iris.csv
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scipy as sc
import seaborn as sns
!pip install vega_datasets
This chart is empty
Chart was probably not set up properly in the notebook
This chart is empty
Chart was probably not set up properly in the notebook
# load an example dataset
from vega_datasets import data
cars = data.cars()
# plot the dataset, referencing dataframe column names
import altair as alt
alt.Chart(cars).mark_bar().encode(
x=alt.X('Miles_per_Gallon', bin=True),
y='count()',
)
# load an example dataset
from vega_datasets import data
cars = data.cars()
# plot the dataset, referencing dataframe column names
import altair as alt
alt.Chart(cars).mark_bar().encode(
x=alt.X('Miles_per_Gallon', bin=True),
y='count()',
color='Origin'
)
# load an example dataset
from vega_datasets import data
cars = data.cars()
import altair as alt
interval = alt.selection_interval()
base = alt.Chart(cars).mark_point().encode(
y='Miles_per_Gallon',
color=alt.condition(interval, 'Origin', alt.value('lightgray'))
).properties(
selection=interval
)
base.encode(x='Acceleration') | base.encode(x='Horsepower')
This chart is empty
Chart was probably not set up properly in the notebook