-1/L - 1/(F+d) = -1/F
d = F^2/(L-F)
table = np.loadtxt('Dlya_ucheby.csv' , delimiter = ' , ' ,encoding = 'cp1251', skiprows=1)
galaxy, пробовала
другая ошибка выходит:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in ()
----> 1 table = np.loadtxt('Dlya_ucheby.csv', delimiter = ',', encoding = 'cp1251', skiprows=1)
3 frames
/usr/local/lib/python3.7/dist-packages/numpy/lib/npyio.py in floatconv(x)
761 if '0x' in x:
762 return float.fromhex(x)
--> 763 return float(x)
764
765 typ = dtype.type
ValueError: could not convert string to float: '207401;2013;41327;0'
delimiter = ';',
все равно проблема сохраняется:
table = np.loadtxt('Dlya_ucheby.csv', delimiter = ' ; ', encoding = 'cp1251', skiprows=1)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in ()
----> 1 table = np.loadtxt('Dlya_ucheby.csv', delimiter = ';', encoding = 'cp1251', skiprows=1)
3 frames
/usr/local/lib/python3.7/dist-packages/numpy/lib/npyio.py in floatconv(x)
761 if '0x' in x:
762 return float.fromhex(x)
--> 763 return float(x)
764
765 typ = dtype.type
ValueError: could not convert string to float: '0,58'
ну а какой тут разделитель:
'207401;2013;41327;0'
?
Новая проблема из-за десятичного разделителя - у вас запятая, ожидается точка. Настроить это в питоне я легкого способа не вижу, так что пересохраняйте CSV файл с другим десятичным разделителем (я не помню, настраивается это как-то в Excel или же он берет из системных настроек Windows, вроде второе)
cur.execute(f"UPDATE telephone SET ABCOUNT = :abc, delete_abcount = 0 WHERE TEL = :tel AND ABCOUNT IS NULL", {"abc": abc, "tel": tel})
event_action = [event.object['message'].get('action')]
set(a.split(', ')) & set(b.split(', '))
SELECT * FROM (
SELECT DISTINCT ON ("complex"."id") "complex".*, "flat".*
FROM "flat"
LEFT JOIN "complex" ON "flat"."complex_id" = "complex"."id"
LEFT JOIN "building" ON "flat"."building_id" = "building"."id"
LEFT JOIN "section" ON "flat"."section_id" = "section"."id"
ORDER BY "complex"."id", "flat"."price_call"
) q
ORDER BY rate DESC, room_price_min
LIMIT 30
<?php
$request = curl_init('http://www.example.com/upload.php');
curl_setopt($request, CURLOPT_POST, true);
curl_setopt($request,
CURLOPT_SAFE_UPLOAD, true); curl_setopt(
$request,
CURLOPT_POSTFIELDS,
[
'blob[0]' => new CURLFile(realpath('first-file.jpg'), 'image/jpeg'),
'blob[1]' => new CURLFile(realpath('second-file.txt'), 'text/plain'),
'blob[2]' => new CURLFile(realpath('third-file.exe'), 'application/octet-stream'),
] );
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($request);
with recursive cat as (
select id, id top from landcategory where parent_id is null
union
select lc.id, top from landcategory lc join cat on (cat.id = lc.parent_id)
)
select lc.*, childs from landcategory lc join (
select top, array_agg(id) childs from cat
group by 1
) t on (t.top = lc.id)
subq $16, %rsp
?