Maps.read_file.CSV#
- static read_file.CSV(path, parameter=None, x=None, y=None, crs=None, set_data=None, **kwargs)#
Read all relevant information necessary to add a CSV-file to the map.
Use it as:
>>> data = m.read_file.CSV(...)
or
>>> m.read_file.CSV(set_data=m)
- Parameters:
path (str) – The path to the csv-file.
parameter (str) – The column-name to use as parameter.
x (str) – The column-name to use as “x” coordinates.
y (str) – The column-name to use as “y” coordinates.
crs (crs-identifier) – The crs of the data. (see “Maps.set_data” for details)
kwargs – additional kwargs passed to pandas.read_csv.
- Returns:
A dict that contains the data required for plotting.
- Return type:
dict (if set_data is False) or None (if set_data is True)