<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
Say that you have 3 numpy arrays: lat, lon, val:
<ASSISTANT_TASK:>
Python Code:
import numpy as np
import pandas as pd
lat=np.array([[10, 20, 30],
              [20, 11, 33],
              [21, 20, 10]])
lon=np.array([[100, 102, 103],
              [105, 101, 102],
              [100, 102, 103]])
val=np.array([[17, 2, 11],
              [86, 84, 1],
              [9, 5, 10]])
df = pd.DataFrame({'lat': lat.ravel(), 'lon': lon.ravel(), 'val': val.ravel()})
<END_TASK>