Column names are all the same You are trying to find the product of two files with different index names. And I want to use the index name of the multiplied value as the index name of df1.
Since I'm writing it like this Two indexes were combined into a join expression.
The calculation was done through the command prod Shows output without index name.
I want to multiply the values of the two data frames and output the result of the multiplied values. I want the index name of the result value to be the index name in df1.
If anyone knows, please answer.pandas dataframe
If you simply try to multiply data frames, you calculate them by matching the index.
The values of the data frame are a numpy array of data frame contents. Pure array with no indexes.
df1 can be multiplied by a numpy array of the same shape.
© 2022 pinfo. All rights reserved.