syntax error in

This is the place for queries that don't fit in any of the other categories.

syntax error in

Postby Marleb » Mon Aug 05, 2013 10:10 am

i want to read a csv.file but i get a syntax error in Why?

Code: Select all
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from numpy import genfromtxt

data = np.genfromtxt('P:\400\440\Projektideen\user_ideen\Lebida\Example.csv', dtype('f8'), delimiter=',')

fig = plt.figure()

ax1.plot(float(data['0']), float(data['1']), color='r', label='the data'
Posts: 3
Joined: Mon Aug 05, 2013 10:08 am

Re: csv reading

Postby stranac » Mon Aug 05, 2013 10:19 am

Read this before posting again.
It explains how to post properly.

Your problem is a missing parenthesis on the previous line.

Also, why title this "csv reading"?
Your problem obviously has nothing to do with that.
Friendship is magic!

R.I.P. Tracy M. You will be missed.
User avatar
Posts: 1790
Joined: Thu Feb 07, 2013 3:42 pm

Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 3 guests