Hi there,
I have a problem with calculation of correlation.
I have a simple table:
meanwspdi weather_lat weather_lon
0 7.860000 40.700348 -73.887177
1 7.860000 40.700348 -73.887177
2 7.860000 40.700348 -73.887177
3 7.860000 40.700348 -73.887177
4 7.860000 40.700348 -73.887177
5 8.250000 40.700348 -73.887177
(There are much more columns than this example shows)
I want to calculate the correlation between two columns ['ENTRIESn_hourly'], ['meanprecipi']
This is my code:
import pandas as pd
abba = pd.read_csv('nyc.csv')
df = abba.correlation(['ENTRIESn_hourly'], ['meanprecipi'])
But I get an error:
AttributeError: 'DataFrame' object has no attribute 'correlation'
What is my mistake?
Thank you!
J
I have a problem with calculation of correlation.
I have a simple table:
meanwspdi weather_lat weather_lon
0 7.860000 40.700348 -73.887177
1 7.860000 40.700348 -73.887177
2 7.860000 40.700348 -73.887177
3 7.860000 40.700348 -73.887177
4 7.860000 40.700348 -73.887177
5 8.250000 40.700348 -73.887177
(There are much more columns than this example shows)
I want to calculate the correlation between two columns ['ENTRIESn_hourly'], ['meanprecipi']
This is my code:
import pandas as pd
abba = pd.read_csv('nyc.csv')
df = abba.correlation(['ENTRIESn_hourly'], ['meanprecipi'])
But I get an error:
AttributeError: 'DataFrame' object has no attribute 'correlation'
What is my mistake?
Thank you!
J