how can you use pandas in python
import pandas as pd
my_series = pd.Series([1, 2, 3,4,5],index=['row1','row2','row3','row4','row5'])
# result
# row1 1
# row2 2
# row3 3
# row4 4
# row5 5
my_series.values
# array([1, 2, 3, 4, 5], dtype=int64)
my_series.index
# Index(['row1', 'row2', 'row3', 'row4', 'row5'], dtype='object')
my_series.index = ['A','B','C','D','E']
import numpy as np
my_array = np.array([[1, 5, 9, 13], [2, 6, 10, 14], [3, 7, 11, 15], [4, 8, 12, 16]])
my_df = pd.DataFrame(my_array, index=['row1' ,'row2' ,'row3' ,'row4'], columns=['col1' ,'col2' ,'col3' ,'col4'])
import numpy as np
my_array = np.array([[1, 5, 9, 13], [2, 6, 10, 14], [3, 7, 11, 15], [4, 8, 12, 16]])
my_df = pd.DataFrame(my_array, index=['row1' ,'row2' ,'row3' ,'row4'], columns=['col1' ,'col2' ,'col3' ,'col4'])
array.loc['row1']['col2']
array.iloc[2][3]
array.['col5'] = [20 ,21 ,22 ,23]
# or
array.loc['row1', 'col1'] = 0
array.reset_index(drop=True)
array.drop('col5',axis=1)
# or
array.drop('row1',axis=0)
array.rename(columns={'col4':'col_four'})
array.sort_values(by='col1',ascending=False)
# or
array.sort_values(by='col1',ascending=True)
it can show you five first rows
array.head()
I hope this data will be useful to you.