Kernel: Python 3
In [3]:
In [4]:
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-4ed48fd0b1d8> in <module>()
----> 1 PPM = pd.read_csv('NatatmoCleanedForInfiltrationAnalysis.csv', parse_dates=True, index_col=1)
~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
653 skip_blank_lines=skip_blank_lines)
654
--> 655 return _read(filepath_or_buffer, kwds)
656
657 parser_f.__name__ = name
~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
403
404 # Create the parser.
--> 405 parser = TextFileReader(filepath_or_buffer, **kwds)
406
407 if chunksize or iterator:
~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in __init__(self, f, engine, **kwds)
762 self.options['has_index_names'] = kwds['has_index_names']
763
--> 764 self._make_engine(self.engine)
765
766 def close(self):
~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in _make_engine(self, engine)
983 def _make_engine(self, engine='c'):
984 if engine == 'c':
--> 985 self._engine = CParserWrapper(self.f, **self.options)
986 else:
987 if engine == 'python':
~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in __init__(self, src, **kwds)
1603 kwds['allow_leading_cols'] = self.index_col is not False
1604
-> 1605 self._reader = parsers.TextReader(src, **kwds)
1606
1607 # XXX
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.__cinit__ (pandas/_libs/parsers.c:4209)()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source (pandas/_libs/parsers.c:8873)()
FileNotFoundError: File b'NatatmoCleanedForInfiltrationAnalysis.csv' does not exist
In [3]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f4384188e80>
In [4]:
In [5]:
In [6]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f438341b8d0>
In [7]:
count 1.009790e+05
mean NaN
std NaN
min -inf
25% -1.200000e+00
50% 0.000000e+00
75% 1.000000e+00
max inf
dtype: float64
In [8]:
Time
2016-02-19 13:26:00 NaN
2016-02-19 13:27:00 NaN
2016-02-19 13:27:00 NaN
2016-02-19 13:31:00 NaN
2016-02-19 13:36:00 -1.0
dtype: float64
In [9]:
In [10]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f4383715d30>
In [11]:
Time
2016-02-19 13:26:00 NaN
2016-02-19 13:27:00 NaN
2016-02-19 13:27:00 NaN
2016-02-19 13:31:00 NaN
2016-02-19 13:36:00 -332.0
dtype: float64
made Infiltration csv (perhaps for detailed reference later)
In [12]:
In [13]:
ppm/min | |
---|---|
Time | |
2016-02-19 13:26:00 | NaN |
2016-02-19 13:27:00 | NaN |
2016-02-19 13:27:00 | NaN |
2016-02-19 13:31:00 | NaN |
2016-02-19 13:36:00 | -332.0 |
In [14]:
ppm/min | |
---|---|
count | 4.885000e+04 |
mean | -inf |
std | NaN |
min | -inf |
25% | -1.046850e+03 |
50% | -5.160000e+02 |
75% | -2.460000e+02 |
max | -2.306667e+01 |
In [15]:
ppm/min | |
---|---|
count | 48848.000000 |
mean | -1141.663669 |
std | 3186.375410 |
min | -206960.600000 |
25% | -1046.400000 |
50% | -516.000000 |
75% | -246.000000 |
max | -23.066667 |
In [16]:
In [17]:
array([[<matplotlib.axes._subplots.AxesSubplot object at 0x7f4382e699e8>]], dtype=object)
In [18]:
array([[<matplotlib.axes._subplots.AxesSubplot object at 0x7f4382df5160>]], dtype=object)
In [19]:
array([[<matplotlib.axes._subplots.AxesSubplot object at 0x7f437f04c358>]], dtype=object)
Question for Soto: how to make bins small enough to fit each value, or at least equal to the average difference
In [20]:
array([[<matplotlib.axes._subplots.AxesSubplot object at 0x7f43834fc828>]], dtype=object)
In [21]:
array([[<matplotlib.axes._subplots.AxesSubplot object at 0x7f437de3b2b0>]], dtype=object)
This needs some work
In [22]:
/ext/anaconda3/lib/python3.5/site-packages/matplotlib/axes/_axes.py:6277: RuntimeWarning: invalid value encountered in add
patch = _barfunc(bins[:-1]+boffset, height, width,
/ext/anaconda3/lib/python3.5/site-packages/matplotlib/axes/_axes.py:2105: RuntimeWarning: invalid value encountered in double_scalars
left = [left[i] - width[i] / 2. for i in xrange(len(left))]
array([[<matplotlib.axes._subplots.AxesSubplot object at 0x7f437d8a0b70>]], dtype=object)
In [23]:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-23-a2f1855ae631> in <module>()
----> 1 In.kdeplot()
/ext/anaconda3/lib/python3.5/site-packages/pandas/core/generic.py in __getattr__(self, name)
3079 if name in self._info_axis:
3080 return self[name]
-> 3081 return object.__getattribute__(self, name)
3082
3083 def __setattr__(self, name, value):
AttributeError: 'DataFrame' object has no attribute 'kdeplot'
In [0]:
In [0]:
In [0]: