Re: [Tutor] python plotting

2016-01-19 Thread Francois Dion
I'm guessing you loaded from pandas import *... It is better to import pandas as pd, then use pd.read_csv. I also tend to name my data frames df or a variation and time series as ts. Speaking of series, If your data is not a series with a datetime type, then it will be plotted as a categorical, me

Re: [Tutor] python plotting

2016-01-19 Thread Alan Gauld
On 19/01/16 19:28, Bachir Bachir via Tutor wrote: > Dear all, > I have some data taken at specific time of the day and i want to > display those data according to the time, > attached is the cvs file and the display output I assume you mean csv file? > from python pandas . I used the following

[Tutor] python plotting

2016-01-19 Thread Bachir Bachir via Tutor
 Dear all, I have some data taken at specific time of the day and i  want to display those data according to the time,attached is the cvs file and the display output from python pandas . I used the following script   v2=read_csv('v2_12.dat')  #data frame for v2  v2.plot(kind='bar', x='Time_hhmmss

Re: [Tutor] Fwd:

2016-01-19 Thread Danny Yoo
My apologies for this ugliness. Followup to the mailing list: I've contacted the organizers of the Amrita InCTF competition and told them that one of their members was trying to use us for cheat for answers. I'll follow up if I hear back from the organizers. Apparently, this is an endemic proble

Re: [Tutor] Fwd:

2016-01-19 Thread Danny Yoo
No. This is definitely wrong. On Jan 19, 2016 2:51 AM, "Deepak Nn" wrote: > Finding the answer is very important that's why for the competition . > > On Tue, Jan 19, 2016 at 4:19 PM, Deepak Nn > wrote: > >> This is for an online competition i am now participating in Amrita InCTF >> Junior

Re: [Tutor] Source of MySQL Command Interpreter

2016-01-19 Thread Alan Gauld
On 16/01/16 23:27, Ricardo Martínez wrote: > Hi, i wrote a small APP to execute MySQL commands and retrieve to a Treeview I finally got round to looking at this. Here are a couple of comments. I don't understand what the else part is supposed to do here: if self.cursor.description is not No

Re: [Tutor] Simultaneous read and write on file

2016-01-19 Thread Peter Otten
Anshu Kumar wrote: > Hello All, > > So much Thanks for your response. > > Here is my actual scenario. I have a csv file and it would already be > present. I need to read and remove some rows based on some logic. I have > written earlier two separate file opens which I think was nice and clean. >

Re: [Tutor] Simultaneous read and write on file

2016-01-19 Thread Alan Gauld
On 19/01/16 05:41, Anshu Kumar wrote: > Here is my actual scenario. I have a csv file and it would already be > present. I need to read and remove some rows based on some logic. I have > written earlier two separate file opens which I think was nice and clean. Yes, it looks straightforward. The o

Re: [Tutor] Beautiful Soup

2016-01-19 Thread Peter Otten
Crusier wrote: > Hi Python Tutors, > > I am currently able to strip down to the string I want. However, I > have problems with the JSON script and I am not sure how to slice it > into a dictionary. > > import urllib > import json > import requests > > from bs4 import BeautifulSoup > > > url =

Re: [Tutor] Simultaneous read and write on file

2016-01-19 Thread Anshu Kumar
Hello All, So much Thanks for your response. Here is my actual scenario. I have a csv file and it would already be present. I need to read and remove some rows based on some logic. I have written earlier two separate file opens which I think was nice and clean. actual code: with open(file_path,

Re: [Tutor] An Advice to a dedicated beginner

2016-01-19 Thread Anshu Kumar
Hey, This sounds very usual and common. Your next step should be something that fetches you feedback like go for job/ internship or participate in coding contests. Try to look for some small projects on github. Most importantly never loose zeal it will take you there. Good luck Anshu On Jan