Re: how to read and parse the csv files using pandas in django

2019-03-28 Thread Jayram Rawat
can you send the data sheet which you are using in this program. On Thursday, 28 March 2019 17:04:54 UTC+5:30, naga lokesh wrote: > > I have normal python code to plot the graphs for csv data(data > visualisation).But I need code in django and graphs should display on > dashboard... > -- You r

Re: how to read and parse the csv files using pandas in django

2019-03-28 Thread Alison Mukoma
Hi, It seems that to achieve that you need to put up a django project and maybe a seperate app for best practices where you can write that code in views and send your data to templates as context variables then after put up your routing in URLs and you can design your dashboard as you like it. On

how to read and parse the csv files using pandas in django

2019-03-28 Thread naga lokesh
I have normal python code to plot the graphs for csv data(data visualisation).But I need code in django and graphs should display on dashboard... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Best option to check and/or convert encoding for csv files

2017-09-25 Thread Mike Dewhirst
been small-scale LibreOffice save-as-csv which have let me use my editor's replace function to get rid of problem chars and repair csv files prior to importing data. I know this is the wimp's way out but I have never had time to do it properly. I'm really sorry I can't he

Weird issue in outputting CSV files for downloading in django

2017-09-25 Thread BIJAL MANIAR
Hi, I want my view to respond with a file for downloading, so that the browser pops up the download/file save dialog. I am using the 'Content-Disposition' header to specify the name of the file. When I use the django development server, it works perfectly fine in all browsers When I run it on pr

Best option to check and/or convert encoding for csv files

2017-09-22 Thread Fellipe Henrique
Hello guys, So, I have several csv files, to open using pyexcel... but I start to have issues with CSV saved from Excel, with other encoding... There's any option to verify the encoding of file, or change the encoding? regards T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: &

Re: csv files

2010-08-18 Thread Simon Brunning
On 13 August 2010 17:59:01 UTC+1, Tony wrote: > My script right now basically just reads from a csv file and puts it > into a dictionary for me.  However, when I make my own csv file (just > the same as any I have seen), it acts inconsistently.  For example, > sometimes it starts at the second lin

Re: csv files

2010-08-13 Thread Steve Holden
On 8/13/2010 12:59 PM, Tony wrote: > My script right now basically just reads from a csv file and puts it > into a dictionary for me. However, when I make my own csv file (just > the same as any I have seen), it acts inconsistently. For example, > sometimes it starts at the second line and anothe

csv files

2010-08-13 Thread Tony
My script right now basically just reads from a csv file and puts it into a dictionary for me. However, when I make my own csv file (just the same as any I have seen), it acts inconsistently. For example, sometimes it starts at the second line and another time it kept starting at the end of the f

Re: Writing csv files to server

2009-04-23 Thread Florian Strzelecki
Hm... in my opinion this isn't a Django problem, but a conception problem. I think you need a "state" on the invoices : when does it have been paid ? If you know when, so you can filter on the date of paiement. Exemple : Paid (id-1, sales-1, date_paid-2009-03-02, value-$150) Paid (id-1, sales-1,

Writing csv files to server

2009-04-23 Thread Alfonso
I need to generate a statement at the end of the month that grabs all the invoices for that month and lets the client knows who hasn't paid on time. Problem is the usual setup I have of creating a view/template that simply shows unpaid invoices (within a statement) doesn't stay persistent, i.e. wh

Re: Import models from CSV files?

2009-01-07 Thread Victor Hooi
heya, The sample code request was just me being lazy =). Hmm, so you think the csv parsing code should be in the upload processing? This would just be a form with two boxes for the user to select the .csv files, and an upload button. Better putting it here than in the model? In terms of

Re: Import models from CSV files?

2009-01-07 Thread Keyton Weissinger
nstantiate models from .csv files? > > Essentially, I have two .csv files. One contains a list of people, and > their access rights (one-to-many). The second .csv file contains a log > of doorway access (just a bunch of sequential lines). I have a simple > python script which imports

Re: Import models from CSV files?

2009-01-07 Thread tofergus
On 06.01-16:55, Victor Hooi wrote: [ ... ] > Valts, thanks for the reply - that looks interesting, and is similar > in some ways to what I want - definitely going to check out the code. > Basically, I just wanted a simple file-upload form, for the user to > upload the two .CSV

Re: Import models from CSV files?

2009-01-07 Thread Valts Mazurs
anks for the reply - that looks interesting, and is similar > in some ways to what I want - definitely going to check out the code. > Basically, I just wanted a simple file-upload form, for the user to > upload the two .CSV files. Then, there's quite a bit of processing to > do on the tw

Re: Import models from CSV files?

2009-01-06 Thread Victor Hooi
heya, Whoops...forgot. I'm also confused on the recommended way to deal with duplicates? (not duplicate .csv files, but duplicate entries, perhaps in two different ones.). Just do a plain search for each entry? Or is there a better way? On Jan 7, 11:55 am, Victor Hooi wrote: > heya, &

Re: Import models from CSV files?

2009-01-06 Thread Victor Hooi
heya, Valts, thanks for the reply - that looks interesting, and is similar in some ways to what I want - definitely going to check out the code. Basically, I just wanted a simple file-upload form, for the user to upload the two .CSV files. Then, there's quite a bit of processing to do on th

Re: Import models from CSV files?

2009-01-06 Thread Valts Mazurs
rows I would commit the changes to database after number of inserts (e.g., 100) instead of every insert. Best regards, -- Valts On Tue, Jan 6, 2009 at 07:02, Victor Hooi wrote: > > heya, > > This question might seem a bit simple, but what's the best way to > instantiate mo

Import models from CSV files?

2009-01-05 Thread Victor Hooi
heya, This question might seem a bit simple, but what's the best way to instantiate models from .csv files? Essentially, I have two .csv files. One contains a list of people, and their access rights (one-to-many). The second .csv file contains a log of doorway access (just a bunch of seque

Re: uploading CSV files

2008-05-22 Thread nandu
Thanks to everyone for all your help I have now got it working. Yours sincerely, Nanda 23 May 08 On May 22, 8:30 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 21-May-08, at 5:10 PM, nandu wrote: > > > I am having a problem with where to start when I am faced with > > uploading a CSV file

Re: uploading CSV files

2008-05-22 Thread Kenneth Gonsalves
On 21-May-08, at 5:10 PM, nandu wrote: > I am having a problem with where to start when I am faced with > uploading a CSV file. I do not want to create a model for the file as > there is no need for me to keep track of the files that I am uploading > to the server. you do not need a model - ju

Re: uploading CSV files

2008-05-21 Thread Marcin Mierzejewski
Dear Nanda, Please visit the link below: http://www.zoia.org/blog/2007/07/29/django-file-upload/ I hope that it helps you. Best regards, Marcin Mierzejewski On May 21, 1:40 pm, nandu <[EMAIL PROTECTED]> wrote: > Dear All, > > I am having a problem with where to start when I am faced with > up

uploading CSV files

2008-05-21 Thread nandu
Dear All, I am having a problem with where to start when I am faced with uploading a CSV file. I do not want to create a model for the file as there is no need for me to keep track of the files that I am uploading to the server. Could you please give me a set of steps I need to follow or point