Hello Getting Error Python Code Error Invalid Syntax Im Sure Referring Could Someone Help Q37220166

Hello, I am getting an error with my python code. The error isbelow “Invalid Syntax” but im not sure what this is referring to.Could someone help explain what I need to change?

print eth[[‘date’,’price(USD)’]]                    

            ^                                            

SyntaxError: invalid syntax   

import pandas
import matplotlib.pyplot as plt
def header(msg):
   print(‘-‘ * 50)
   print(‘[ ‘ + msg + ‘ ]’)

#price is column 5
#date is column 0

eth = pandas.read_csv(‘eth.csv’)
bit = pandas.read_csv(‘bit2.csv’)
#print(eth)
#describe(eth)

#Describing in more digestable ways of Etherium
header(“Data Types (Etherium)”)
print(eth.dtypes)

header(“Indexes (Etherium)”)
print(eth.index)

header(“Columns (Etherium)”)
print(eth.columns)

header(“Values (Etherium)”)
print(eth.values)

header(“Date and Price of Etherium”)
print eth[[‘date’, ‘price(USD)’]]

header(“Bitcoin Data”)

header(“Data Types”)
print(bit.dtypes)

header(“Indexes”)
print(bit.index)

header(“Values”)
print(bit.values)

header(“Date and Price of Bitcoin”)
print bit[[‘Date’, ‘Close’]]

date = eth[‘date’]
price = eth[‘price(USD)’]

dateBit = bit[‘Date’]
priceBit = bit[‘Close’]

#plt.plot(date, price, color = ‘g’)
plt.plot(dateBit, priceBit, color =

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.