• lyubomyr83

    I install last version pandas over stash
    Then i test with some code:

    import pandas as pd
    df = pd.DataFrame({'id':range(15), 'chars': ['ab']*15})
    print(df)

    After run i receive
    this version of pandas is incompatible with numpy 1.13.3

    How to fix, maybe, anybody know?

    posted in Pythonista read more
  • lyubomyr83

    +1..........

    posted in Pythonista read more
  • lyubomyr83

    @cvp thank's a lot. It working for '+', '-' and '+-':

    def uniques_col(operators, max):
        col = 0
        if operators == '+':
            for i in range(1,max):
                for j in range(1,max-i+1):
                    col += 1
        elif operators == '-':
            for i in range(1,max+1):
                for j in range(1,i+1):
                    col += 1
        elif operators == '+-':
                col = max**2
        
        return col
        
    
    while True:
        op = input('operator\n')
        max = int(input('max\n'))
        print(uniques_col(op,max))
    
    And maybe you know uniques col for:
    +-×
    +-/
    +-×/
    /×
    

    ??? Thank's in advance!!!

    posted in Pythonista read more
  • lyubomyr83

    @cvp in iOS settings/speech i hear sound when i change speed (Turtle)

    posted in Pythonista read more
  • lyubomyr83

    @cvp, thank you all for help!!!
    With your function i receive right col for '-', but not for '+':

    def uniques_col(operators, max):
    n = 0
    if operators == '+':
    for i in range(1,max):
    for j in range(i,max-i+1):
    n += 1
    print(i,operators,j,'=',i+j)
    elif operators == '-':
    for i in range(1,max+1):
    for j in range(1,i+1):
    n += 1
    print(i,operators,j,'=',i-j)
    return n

    while True:
    op = input('operator\n')
    max = int(input('max\n'))
    print(uniques_col(op,max))

    What i receive:
    operator-
    max4
    1 - 1 = 0
    2 - 1 = 1
    2 - 2 = 0
    3 - 1 = 2
    3 - 2 = 1
    3 - 3 = 0
    4 - 1 = 3
    4 - 2 = 2
    4 - 3 = 1
    4 - 4 = 0
    10
    operator+
    max4
    1 + 1 = 2
    1 + 2 = 3
    1 + 3 = 4
    2 + 2 = 4
    4

    Where is 1+3 and 2+1, so for '+' i need receive 6 unique examples.

    posted in Pythonista read more
  • lyubomyr83

    @JonB i have two same 3rd generation ipads, run the same program and have voice in one of them and not in another one. Yes, voice is on ))) in settings. And i have not errors.

    posted in Pythonista read more
  • lyubomyr83

    @mikael
    Max - variable count to, for example 100.
    So i need count quantity uniques examples for some mathematic operator, in my case '+' or '-'
    I can't have example 98+10 or 25-50
    Max example result must be under 100 or equal
    Minimum example result must be under 0

    posted in Pythonista read more
  • lyubomyr83

    Hello pythonista community. Can someone adwise me formula for recognize quantity of unique combinations when you count to some max digit with sign "-" (minus)? Answer can't be under zero.

    Example1:
    sign = '-'
    max = 2
    2-2
    2-1
    1-1

    • we have only three unique combinations.

    Example2:
    answer can't be upper max:
    max = 2
    1+1

    • we have only one unique example.

    I already have formula for two signs "+-": unic_col=max**2

    But i need formula for '+' and '-'
    And maybe someone know for:
    +-×
    +-/
    +-×/

    So, i need function like that:

    def uniques_col(operators, max):
    if operators == '+-':
    return max**2
    elif operators == '+':
    return .....
    elif operators == '-':
    return .....
    elif operators == '+-×':
    return .....
    ......

    posted in Pythonista read more
  • lyubomyr83

    @cvp
    get an error module 'speech' (built-in)> is a built-in module

    posted in Pythonista read more
  • lyubomyr83

    @sulcud fresh install doesn't helped. I was delete speech module before over stash(((. Now i can't recover.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!