zarray npdf(xarray yarray fig plt figure figsize =plt figaspect ( ax fig add_subplot ( projection =' 'ax scatter ( , ,zc=' 'ax set_xlabel ('$ 'ax set_ylabel ('$ 'ax set_zlabel ('$ ( , )$'ax fig add_subplot ( projection =' 'ax plot_surface (xarray ,yarray ,zarray ,cmap='viridis 'edgecolor ='none 'ax set_xlabel ('$ 'ax set_ylabel ('$ 'ax set_zlabel ('$ ( , )$'plt show ( (xy (xy figure three-dimensional scatterand surface plots pandas the python package pandas (module name pandasprovides various tools and data structures for data analyticsincluding the fundamental dataframe class for the code in this section we assume that pandas has been imported via import pandas as pd series and dataframe the two main data structures in pandas are series and dataframe series object can be thought of as combination of dictionary and an -dimensional ndarray the syntax