0

I know how to create a simple dataframe from this example:

import pandas as pd
 
data = [['tom', 10], ['nick', 15], ['juli', 14]]

df = pd.DataFrame(data, columns = ['Name', 'Age'])

df

but how do I make it so that the data is from these lists/arrays, which I have previously declared:

station_lon = df['STAT_LON'].values
station_lat = df['STAT_LAT'].values

adjres (list) residuals (list)

Abhishek Prajapat
  • 1,723
  • 2
  • 6
  • 16
  • Do some research first. This question already exists. Just read [this](https://stackoverflow.com/questions/12555323/adding-new-column-to-existing-dataframe-in-python-pandas). – Abhishek Prajapat Jul 28 '21 at 03:02

0 Answers0