title: matrices are not aligned while trying to use np.dot in numpy arrays in jupyter notebook
body: <p>The below code I am trying to do in jupyter notebook and in this i am not possible to do dot product of two matrices</p>
  <pre><code># creating random array
   
  np.random.seed(0)
  sales_amounts = np.random.randint(20 , size=(5,3))
  sales_amounts
  
  
  # creating weekly sales dataframe
  
  weekly_sales = pd.DataFrame(sales_amounts, index =[&quot;Mon&quot;,&quot;Tues&quot;,&quot;Wed&quot;,&quot;Thur&quot;,&quot;Fri&quot;],
                            columns =[&quot;Almond Butter&quot;,&quot;Peanut Butter&quot;,&quot;Cashew Butter&quot;])
  weekly_sales
  
  # Create the price array
      
      prices = np.array([10,8,12])
      prices
  
      prices.shape
  
  
  #Create butter prices dataframe
  
      butter_prices = pd.DataFrame(prices.reshape(1,3), index=[&quot;price&quot;],columns= [&quot;Almond  Butter&quot;,&quot;Peanut_Butter&quot;,&quot;Cashew Butter&quot;])
      butter_prices
  
  
  # shapes not aligned lets transpose
  
      total_sales = prices.dot(sales_amounts.T)
      total_sales
  
  
      #creating daily sales
    
  butter_prices.shape,weekly_sales.shape
  
  
  daily_sales = butter_prices.dot(weekly_sales.T)
  </code></pre>
  <p>After executing the above code in jupyter notebook
  it shows as error: matrices are not aligned</p>