Re: How to Generate dynamic HTML Report using Python

2017-11-19 Thread Kryptxy via Python-list
I have a piece of code (module) implementing dynamic html page generation. What it simply does is writes all the html content (tags + data) to a file, and the file is save with a (.html) extension. Served my purpose. Not really sure is this is something you are looking for. You can view the cod

Re: Problem in defining multidimensional array matrix and regression

2017-11-19 Thread ROGER GRAYDON CHRISTMAN
On Sun, 19 Nov 2017, shalu.ash...@gmail.com wrote: > Hi, All, > >I have 6 variables in CSV file. One is rainfall (dependent, at >y-axis) and others are predictors (at x). I want to do multiple >regression and create a correlation matrix between rainfall (y) and >predictors (x; n1=5). Thus I want to

Re: How to Generate dynamic HTML Report using Python

2017-11-19 Thread Ned Batchelder
On 11/19/17 8:40 PM, Stefan Ram wrote: mradul dhakad writes: I am new to python . I am trying to generate Dynamic HTML report using Pyhton based on number of rows selected from query .Do any one can suggest some thing for it. main.py import sqlite3 conn = sqlite3.connect( ':memory:' ) c =

How to Generate dynamic HTML Report using Python

2017-11-19 Thread mradul dhakad
Hi All , I am new to python . I am trying to generate Dynamic HTML report using Pyhton based on number of rows selected from query .Do any one can suggest some thing for it. Thanks, Mradul -- https://mail.python.org/mailman/listinfo/python-list

Re: Test - please ignore (again)

2017-11-19 Thread Skip Montanaro
> Another test of SpamBayes in comp.lang.python -> python-list gateway. Still leaning on the submit button to see what gate_news thinks... Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: Student can't get if elif final statement to print for discussion post for python

2017-11-19 Thread Richard Damon
On 11/19/17 1:10 PM, Cheri Castro wrote: I've tried several variations but haven't been able to figure out why my final if elif statement won't print. I tried using return, I tried using 1's and 0's rather than yes and no. Not sure what the issue is. Please, help. #This function will print ho

Re: Problem in defining multidimensional array matrix and regression

2017-11-19 Thread Thomas Jollans
On 19/11/17 18:55, shalu.ash...@gmail.com wrote: > Hello Peter, > > Many thanks for your suggestion. > Now I am using Pandas & > I already did that but now I need to make a multi-dimensional array for > reading all variables (5 in this case) at one x-axis, so I can perform > multiple regression

Re: "help( pi )"

2017-11-19 Thread Greg Ewing
Cameron Simpson wrote: Unless one had a misfortune and wanted another docstring. Good point. I guess having differing docstrings should make otherwise equal objects ineligible for merging. mod1.py: MAX_BUFSIZE = 8192 MAX_BUFSIZE.__doc__ = 'Size of the hardware buffer used for I/O on t

Re: Student can't get if elif final statement to print for discussion post for python

2017-11-19 Thread MRAB
On 2017-11-19 19:03, Ben Finney wrote: Cheri Castro writes: I've tried several variations but haven't been able to figure out why my final if elif statement won't print. The code you presented here does not have any ‘elif’ clause. Did you mean to show different code? I tried using return,

Re: Student can't get if elif final statement to print for discussion post for python

2017-11-19 Thread Ben Finney
Cheri Castro writes: > I've tried several variations but haven't been able to figure out why > my final if elif statement won't print. The code you presented here does not have any ‘elif’ clause. Did you mean to show different code? > I tried using return, I tried using 1's and 0's rather than

Is there something like head() and str() of R in python?

2017-11-19 Thread Peng Yu
Hi, R has the functions head() and str() to show the brief content of an object. Is there something similar in python for this purpose? For example, I want to inspect the content of the variable "train". What is the best way to do so? Thanks. $ cat demo.py from __future__ import division, print_f

Re: Problem in defining multidimensional array matrix and regression

2017-11-19 Thread Ben Finney
shalu.ash...@gmail.com writes: > I already did that Peter's suggestion was quite different from the code you first presented. So, I am not understanding what you mean by “I already did that”. Can you: * Reply with your responses interleaved with the quote text https://en.wikipedia.org/wiki/Po

Student can't get if elif final statement to print for discussion post for python

2017-11-19 Thread Cheri Castro
I've tried several variations but haven't been able to figure out why my final if elif statement won't print. I tried using return, I tried using 1's and 0's rather than yes and no. Not sure what the issue is. Please, help. #This function will print how many yes answers the user has and a mess

Re: Problem in defining multidimensional array matrix and regression

2017-11-19 Thread shalu . ashu50
Hello Peter, Many thanks for your suggestion. Now I am using Pandas & I already did that but now I need to make a multi-dimensional array for reading all variables (5 in this case) at one x-axis, so I can perform multiple regression analysis. I am not getting how to bring all variables at one

Re: Problem in defining multidimensional array matrix and regression

2017-11-19 Thread Peter Otten
shalu.ash...@gmail.com wrote: > Hi, All, > > I have 6 variables in CSV file. One is rainfall (dependent, at y-axis) and > others are predictors (at x). I want to do multiple regression and create > a correlation matrix between rainfall (y) and predictors (x; n1=5). Thus I > want to read rainfall

Problem in defining multidimensional array matrix and regression

2017-11-19 Thread shalu . ashu50
Hi, All, I have 6 variables in CSV file. One is rainfall (dependent, at y-axis) and others are predictors (at x). I want to do multiple regression and create a correlation matrix between rainfall (y) and predictors (x; n1=5). Thus I want to read rainfall as a separate variable and others in sep