Thank you for viewing.
I asked the question earlier, and answered about obtaining the value after sorting the keys in the dictionary.
I couldn't ask a specific question about what I couldn't solve, so I asked again.
https://www.tutorialfor.com/go.php?id=143402
What I want to do is to store a list of sorted dictionary keys in a twodimensional array numpy and output the dictionary value corresponding to this key.
Specifically, the program only knows how to write halfway
import pandas as pd
import numpy as np
dic_list = ()
df_1 = pd.DataFrame ([[1, 1], [1, 1]])
df_2 = pd.DataFrame ([[2, 2], [2, 2]])
df_3 = pd.DataFrame ([[3, 3], [3, 3]])
df_4 = pd.DataFrame ([[4, 4], [4, 4]])
dic = {'a': df_1, 'c': df_2, 'b': df_3, 'd': df_4}
sorted_keys = sorted (dic)
np_dic_keys = np.array ([[sorted_keys [0], sorted_keys [1]], [sorted_keys [2], sorted_keys [3]]])
print (np_dic_keys)
# np_dic_keys_2 = np.array ([[dic [sorted_keys [0]], dic [sorted_keys [1]]], [dic [sorted_keys [2]], dic [sorted_keys [3]]]])
#print (np_dic_keys_2) Different results than expected
I would like to change the key stored in np_dic_keys to the corresponding dic value.
The result is the current np_dic_keys
[['a''b']
['c''d']]
Is the data frame of the corresponding dictionary
[[1 1 2 2
1 1 2 2
3 3 4 4
3 3 4 4]]
I hope to make it like this.
In addition to the proposed solution, I would appreciate it if you could tell me any suggestions or ideas in the current program.

Answer # 1
Related articles
 i want to retrieve one dictionary from the array containing the dictionary, change it, and return it
 python  i want to move an element of a numpy array by referring to another array
 Python numpy array transpose and axis transformation
 Python implementation save Numpy array as image
 pytorch implements tensor and numpy array conversion
 Python Numpy array extension repeat and tile use instance parsing
 Detailed numpy declaration of empty array
 Detailed explanation of the use of numpy array axis
 Detailed position of elements in 3D array in numpy
 Implementation of numpy array for image stitching (concatenate, vstack, hstack)
 Python Numpy Filled Array with Natural Numbers
 numpy ndarray filter array by condition, example of associative filtering
 Array change listener instance in vuex state
 python  i want to change diagonal elements in numpy 2d array
 Python fetch some rows and columns of numpy array
 The solution to change the attributes in the array in vue does not take effect in the page
 vue loop array change the color of click text
 Numpy array and matrix conversion methods
 The mechanism of numpy array broadcasting
 Python dictionary change value method summary
 numpy  python sum of column values is concatenated
 numpy  get the column with the loc method
 i want to plot a heat map of a building as a 3d graph in python etc
 python  after combining multiple data frames, calculate using the numbers in them
 python 3x  how to write iteration code in python
 (python,xlwings) i want to get the "user defined" value (time) from excel with xlwings in the same format
 python pandas notation
 python 3x  how to deal with'type' object does not support item assignment
 python pandas add new row to existing csv
 python  unicodedecodeerror(utf8) or schemaerror(shiftjis) occurs when outputting a shapefile using geopandas
How about this