Can somebody explain data frame joins with pandas
to me based on this example?
The first dataframe, let's call it A
, looks like this:
The second dataframe, B
, looks like this:
I want to create a plot now in which I compare the values for column running
in A
with those in B
but only if the string in column graph
is the same. (In this example, the first row in A
and B
have the same graph
so I want to compare their running
value.)
I believe this is what Pandas.DataFrame.join
is for, but I cannot formulate the code needed to join the data frames A
and B
correctly.