朱莉娅错误地导入了带有科学计数法的CSV

时间:2018-08-07 09:07:11

标签: csv julia

我使用的是CSV作为接收器的Julia DataFrames软件包。我的csv中的某些数字读取不正确。这些数字是科学计数法。

此行:

-5.871153289887625082e-01,8.095032986136727615e-01,9.900000000000006573e-01,9.900000000000006573e-01,-9.866066418838319585e-01,-3.138907529596844714e+00,-5.129218106887371675e+00,-4.803915800699462224e+00

导致:

-0.587115   │ 0.809503  │ -0.854674 │ -0.854674 │ 0.858068  │ -3.13891  │ -5.12922 │ -4.80392 

记下第3列和第4列。突然之间,它们是一个完全不同的数字。

这可能是怎么回事?

1 个答案:

答案 0 :(得分:1)

仅供参考。现在,此问题已解决:

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://rawgit.com/kenwheeler/slick/master/slick/slick.css" rel="stylesheet"/>
<link href="https://rawgit.com/kenwheeler/slick/master/slick/slick-theme.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/kenwheeler/slick/master/slick/slick.js"></script>

<div class="container">
    <div class="row">
        <div class="col-sm-6 col-md-6">
            <section class="slider slider1">
                <div>slide1</div>
                <div>slide2</div>
                <div>slide3</div>
                <div>slide4</div>
                <div>slide5</div>
                <div>slide6</div>
            </section>
        </div>
        <div class="col-sm-6 col-md-6">
            <section class="slider slider2">
                <div>slide1</div>
                <div>slide2</div>
                <div>slide3</div>
                <div>slide4</div>
                <div>slide5</div>
                <div>slide6</div>
            </section>
        </div>
    </div>
</div>