Carla Solis Uehara

Results 6 comments of Carla Solis Uehara

Hello, What if, e.g. my x axis was a text category? How could I give the coordinates of that string? In particular: ` x=alt.value(5), # pixels from left. y=alt.value(5), #...

about the read_stata() as well, labels are read as strings and that might be troublesome! just give a heads up

The .loc also indexes columns with their labels as well, for example crops.loc[:, ['Price]], basically we can subset anything with .loc

maybe clarify that it needs () when defining more than 1 condition because of how the operator orders evaluate. Will expand more on this

The most similar thing I've found for % and not repeating the df name is the .eval command https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.eval.html

we can also have the index as variable with `df['ind'] = df.index`