• Keine Ergebnisse gefunden

Short Introduction to Python,

N/A
N/A
Protected

Academic year: 2022

Aktie "Short Introduction to Python,"

Copied!
5
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Short Introduction to Python,

pandas and Anaconda

(2)

Python

https://www.python.org/

Python is a open-source high-level programming

language. The goal is to have an easy understandable

syntax but also be efficient.

Users: Google, youtube

(3)

pandas

http://pandas.pydata.org/

pandas is a specialiced

Python Data Analysis

Library

(4)

Anaconda

http://docs.continuum.io/anaconda/index

“Anaconda is an easy-to-install,

free package manager, environment manager, Python distribution, and collection of over 150 open source packages with free community

support.”

(5)

Some pandas function

Tutorial: http://pandas.pydata.org/pandas-docs/stable/tutorials.html

Tutorial only data cleansing: https://data.library.utoronto.ca/cleaning-data-python

In [1]: import pandas as pd # import pandas

pd.set_option('display.mpl_style', 'default') # Make the graphs a bit prettier

read_csv function for reading CSV files, default is comma-separated, otherwise use (as in R the sep=‘ ‘ attribute in the function

In [2]: tempdata = pd.read_csv('../data/TempData.csv') rain = pd.read_csv('../data/RainData.csv')

In [3]: weatherdata = pd.merge(tempdata, rain)

In [4]: tempdata[‘AVG_TEMPERATURE’] .plot() / tempdata[‘AVG_TEMPERATURE’] .plot(kind='bar‘)

Referenzen

ÄHNLICHE DOKUMENTE

The pyam package was initially developed to work with the IAMC template, a tabular format for yearly timeseries data. But the package also supports sub-annual

The pyam package was ini*ally developed to work with the IAMC template, a tabular format for yearly *meseries data. But the package also supports sub-annual

A small change in the target data can result in a large change in the output at the same time step because pathways in the infiller database can be very dif- ferent in

The package chooses the proper output form comparing the dimension of the object which is currently linked to the field with t h e attributes of this

The package.json file is a JSON file containing package metadata, the src directory contains the Curry modules that make up the package.. We assume familiarity with the JSON

Generates a device status message for each device interfaced to the 4907 File Manager controller and stores them in the specified string variable.. Erases everything currently in

In einem weiteren Modell für eine Partizipation der Neuen Musik an der Gesellschaft, respektive für eine Partizipation der Gesellschaft an der Neuen Musik, geht es darum, mit

P hilosophie als "das Streben nach Er- kenntnis' 'der Zusammenhänge der Dinge in der Welt, nach Erkenntnis des letzten Sinnes, der Ursprünge des Den- kens und Seins, der