I have been trying to accomplish the following problem. There are dataframe 20x1 and another one 1x7. But after i tried to join both, i get a error returning NaN values.
- mean_control_chart it's the dataframe 1x7
- x_barra was a series, but a convert to a dict and after to a dataframe 20x1
- mean_control_chart dataframe:
- x_barra dataframe:
Code:
mean_control_chart = pd.DataFrame(df_mean_control_chart)
x_barra_dict = x_barra.to_dict()
x_barra_df = pd.DataFrame(x_barra_dict, index=['X-Barra'])
x_barra_df = x_barra_df.transpose()
mean_control_chart['X_Barra'] = x_barra_df
OBS: I want after that, the data at the 7 columns of mean_control_chart repet itself based of the x_barra len of rows. So if there are 20 or 100 lines in x_barra, the lines of mean_control_chart would repeat 20 or 100