Thank you, Peter and Alan. Both very helpful. I was able to figure it out.
Cheers!
On Sat, Aug 17, 2019 at 5:45 AM Alan Gauld via Tutor
wrote:
> On 17/08/2019 00:46, C W wrote:
>
> The formatting seems messed up I'll try to straighten it out.
> I hope I get it right!
>
> Cav
Hi everyone,
What exactly is Tuple in the typing module? What does it do?
This is the definition from its website.
https://docs.python.org/3/library/typing.html
"A type alias is defined by assigning the type to the alias"
I have no idea what that means.
Here's the example from the
Thanks a lot Steven. The %f is what I was missing.
The "-08:00" is the UTC timezone, which is California, USA, which I believe
is %z.
Thanks!
On Sat, Jul 20, 2019 at 7:50 PM Steven D'Aprano wrote:
> On Fri, Jul 19, 2019 at 10:44:36PM -0400, C W wrote:
> > Hello all,
> &g
Hello all,
I have a date time string that looks like the following.
02015-07-01 00:01:44.538420-08:00
12015-07-01 00:27:58.717530-08:00
22017-07-01 07:07:48.391376-08:00
I have tried the following two different methods, both did not work.
Method one: pandas
import pandas as pd
stamp
Thank you all. I'm relatively new to OOP, I think that's where the problem
is. It's different from C or any C alike language.
I'm still figuring out what's under the hood with OOP.
Thanks!
On Mon, Jun 18, 2018 at 8:26 PM, Steven D'Aprano
wrote:
> On Mon, Jun 18, 2018 at 08:50:24AM -0600, Mats
Dear Python experts,
I never figured out when to call a method with parenthesis, when is it not?
It seems inconsistent.
For example,
If I do
> data.isnull()
numberair_pressure_9amair_temp_9amavg_wind_direction_9amavg_wind_speed_9am
max_wind_direction_9ammax_wind_speed_9amrain_accumulation_9am
I have found the matplotlib list.
Cheers!
On Sat, Jun 16, 2018 at 7:13 PM, Alan Gauld via Tutor
wrote:
> On 16/06/18 05:49, Mike C wrote:
> > I can only compare to the R language I've used. If there is an issue,
> > say a function freezes at startup, one user brings it up to the list,>
> when
Somehow I missed your first post, Mats. I certainly agree with you earlier
point.
After searching, I see there is a Matplotlib list. I will direct questions
to there, hopefully that will bring some attention.
Thanks!
On Sat, Jun 16, 2018 at 11:52 AM, Mats Wichmann wrote:
> On 06/15/2018 10:49
Python's growing
popularity, hasn't anyone brought this up before me? Was there a plan?
Thanks!
On Thu, Jun 14, 2018 at 9:39 PM, Steven D'Aprano
wrote:
> On Thu, Jun 14, 2018 at 12:31:44PM -0400, C W wrote:
> > Hello everyone,
> >
> > I'm working on matplotlib, could someone e
Hello everyone,
I'm working on matplotlib, could someone explain the difference between
these two?
Axes class: https://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes
Axes and tick API: https://matplotlib.org/api/axis_api.html
I began at reading axes class, but discovered axes API by
i, Aug 11, 2017 at 07:57:09AM -0600, Mats Wichmann wrote:
> > On 08/10/2017 05:23 PM, Alan Gauld via Tutor wrote:
> > > On 10/08/17 14:39, C W wrote:
> > >
> > >> I suppose it's just a place holder, though I don't know when I would
> use it
> > >&
color='red', lw=2)
Thank you very much!
On Fri, Aug 25, 2017 at 1:01 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 25/08/17 15:19, C W wrote:
> > I did not mean to leave out the error message, it was very long.
>
> That just means it has a lot of informati
1320 raise URLError(err) 1321 r = h.getresponse()
1322 except:
URLError:
On Fri, Aug 25, 2017 at 6:01 AM, Sydney Shall <s.sh...@virginmedia.com>
wrote:
> On 24/08/2017 18:46, Alan Gauld via Tutor wrote:
>
>> On 24/08/17 14:51, C W wrote:
>>
>> I have the
Hello all,
I have the following code, I get an error at the first line.
from matplotlib.finance import quotes_historical_yahoo_ochl
from datetime import date
import pandas as pd
today = date.today()
start = date(today.year-1, today.month, today.day)
quotes = quotes_historical_yahoo_ochl('APX',
ipedia.org/wiki/Literal_(computer_programming)
I suppose it's just a place holder, though I don't know when I would use it
in my every day life.
On Thu, Aug 10, 2017 at 8:47 AM, Steven D'Aprano <st...@pearwood.info>
wrote:
> On Wed, Aug 09, 2017 at 12:06:37PM -0400, C W wrote:
>
ferent, but close enough to
mistake them as the same thing.
Thanks!
On Wed, Aug 2, 2017 at 9:32 PM, C W <tmrs...@gmail.com> wrote:
> As pointed out by someone else, ?sorted
> sorted(iterable, key=None, reverse=False)
>
> It seems like the only requirement is iterable. I guess
Dear Python experts,
What exactly does the three dots do?
> aList = ...
> type(pList)
ellipsis
It's an ellipsis, a spot holder to later. But what data type is it: vector,
matrix?
In every other language, you initialize a variable you want to use. What's
the point of ellipsis?
Thanks!
PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 02/08/17 20:01, C W wrote:
>
> > I am a little confused about why Tuple can be sorted.
> >
> > Suppose I have the following,
> >
> >> aTuple = (9, 3, 7, 5)
> >> sorted(aTuple)
> > [3
Dear list,
I am a little confused about why Tuple can be sorted.
Suppose I have the following,
> aTuple = (9, 3, 7, 5)
> sorted(aTuple)
[3, 5, 7, 9]
Why is it ok to sort a the class tuple? If it is invariant by nature, then
wouldn't applying a function on it yield an error?
Thanks!
0:03:59PM -0400, C W wrote:
> > Thank you very much, all!
> >
> > One other question: how do you look up a method?
>
> Any of these will work:
>
> help(list.sort)
>
> help([].sort)
>
> alist = [1, 2, 3, 99]
> help(alist.sort)
>
>
>
>
>
er aList.sort(), I was fine with it for years. I suppose
sort(aList) is more of a data science thing.
Thanks to all!
On Wed, Jul 26, 2017 at 8:21 PM, Steven D'Aprano <st...@pearwood.info>
wrote:
> On Wed, Jul 26, 2017 at 02:40:17PM -0400, C W wrote:
>
> > sorted(aList)
> &
Dear Python experts,
I suppose I have the following Python code:
aList = [3, 5, 2, 4]
sorted(aList)
> [2, 3, 4, 5]
aList.sort()
aList
> [2, 3, 4, 5]
My understanding of each is:
1) function(variable) is manipulating a vector, I can do bList =
sorted(aList)
2) object.method() is permanently
I come back to report that after trying it myself. Rodeo is the winner!
Spyder came close.
There's even a post on moving the layouts around just like RStudio.
http://discuss.yhat.com/t/move-around-the-layout/43
I hope they implement that soon. Thanks everyone for your advice!
On Thu, Jun 8,
Indeed, just installed it. Rodeo is a very close to RStudio.
My review:
It looks like Rodeo is still in earlier development stage, despite look
alike, many features in RStudio don't exist in Rodeo.
It lacks a keyboard configuration. Cmd + Enter combo works! It runs the
current line of code, this
Dear Python list,
I am an R user learning Python. What is a good editor?
1) Pycharm
PyCharm evaluates the entire script, I just want to change a few lines in
the script.
For example,
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0, 1,0.1)
y = np.sin(2 * np.pi * x)
Wow, that's the best explanation I've seen so far, now it's gonna stick
with me!
Thank you!
On Sun, May 28, 2017 at 10:00 PM, Steven D'Aprano <st...@pearwood.info>
wrote:
> On Sun, May 28, 2017 at 01:58:22PM -0400, C W wrote:
> > Dear Python list,
> >
> > I am h
Hi Alan
Thank you very much, I got it. So in this case, there is no need to specify
where it ends.
In fact, even if I wanted to specify the ending, I can't!
Thank you!
On Sun, May 28, 2017 at 7:19 PM, Alan Gauld via Tutor <tutor@python.org>
wrote:
> On 28/05/17 18:58, C W wrote:
Dear Python list,
I am having trouble understanding the following.
If I do case 1,
great = "Machine learning is awesome!"
> print(great[-1])
> !
Now if I do case 2,
> print(great[-3:-1])
> me
Where did the exclamation mark go in case 2?
I was told the count begins at zero, that's true going
28 matches
Mail list logo