Final review/overview - GitHub Pages
final review/overviewBen Bolker03 December 2019all topicssimple variable typesarithmetic and logical operatorsrepr() (print representation)logical expressionsindexing and slicing (strings, lists, arrays, data frames …)string methods (.lower(), .upper(), .replace(), .isalpha()lists, list operators (+=), list methodsmutabilityconditionals and flow controlif, for, while (break)nested loopsfunctionsmodulestuples, tuple methodsfilesopening and closing, .closed.read(), .readlines(), next, StopIteration.strip(), .split(), type conversionsets (non-ordered, unique): .add, .remove, …dictionariesindexing (not by number unless keys are numeric).keys(), .values(), .items(), forinversionrandom numbers (random or numpy.random)random.seed().choice, .uniform, .randrangeMonte Carlo methods/simulationsuse np.mean or np.sum on a bool array to count fraction or totalnumpyarraysdefining with dtype.shapezeros(), ones(), eye(), identity, reshape(), flatten(), arange(), linspace(), copy(), fill()operators, indexing, slicing, selections by logicalvectorized and non-vectorized operators (np.sin vs math.sin)operations over axes: sum, mean, min, max, newaxisnp.logical.[and,not,or]numericsunderflow (too close to zero)overflow (integer and float)loss of precision (small number + large number)nanmatplotlib.plot (uses index as x-variable if no x provided: draws lines by default)fig, ax = plt.subplots().scatter (draws points by default).hist (histogram).bar (barplot)set_xlabel, set_xticklabels, suptitle (recognize)label, legendimshow (image)error handlingraisetry/except (pass)ValueError (inappropriate value), NameError (undefined symbol), IndexError (incorrect indexing), TypeError (inappropriate type)pandasDataFrame and Seriesindexing: .loc and .iloc; indexing columns d[["key1","key2"]]; extracting columns as d.key1read_csv(), .to_csv()operations across rows/columns.groupby, .aggregate (collapse by group: MC only) ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- error handling pandas and data analysis
- table of figures virginia tech
- python class room diary be easy in my python class
- 042 time series basics with pandas and finance data
- patient care encounter pce veterans affairs
- executive summary abstract edu
- 1 abstract virginia tech
- final review overview github pages
- lab 1 writing a script to extract features from pcap file
Related searches
- overview of photosynthesis review worksheet
- biology final exam review answers
- github document management
- using github for documentation
- github tutorial
- scratch github code
- github code search
- github code space
- github search repo
- github search in repository
- github search within repository
- github search within repo