GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Session.virtualfile_to_dataset: Rename parameter 'column_names' to 'n… · GenericMappingTools/pygmt@f211b7d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pygmt
    • clib
      • session.py
    • src
      • blockm.py
      • grd2xyz.py
      • grdhisteq.py
      • grdtrack.py
      • project.py
      • select.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pygmt/clib/session.py‎

Copy file name to clipboardExpand all lines: pygmt/clib/session.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,7 @@ def virtualfile_to_dataset(
17461746
self,
17471747
vfname: str,
17481748
output_type: Literal["pandas", "numpy", "file"] = "pandas",
1749-
column_names: list[str] | None = None,
1749+
names: list[str] | None = None,
17501750
dtype: type | dict[str, type] | None = None,
17511751
index_col: str | int | None = None,
17521752
) -> pd.DataFrame | np.ndarray | None:
@@ -1766,7 +1766,7 @@ def virtualfile_to_dataset(
17661766
- ``"pandas"`` will return a :class:`pandas.DataFrame` object.
17671767
- ``"numpy"`` will return a :class:`numpy.ndarray` object.
17681768
- ``"file"`` means the result was saved to a file and will return ``None``.
1769-
column_names
1769+
names
17701770
The column names for the :class:`pandas.DataFrame` output.
17711771
dtype
17721772
Data type for the columns of the :class:`pandas.DataFrame` output. Can be a
@@ -1862,7 +1862,7 @@ def virtualfile_to_dataset(
18621862

18631863
# Read the virtual file as a GMT dataset and convert to pandas.DataFrame
18641864
result = self.read_virtualfile(vfname, kind="dataset").contents.to_dataframe(
1865-
names=column_names,
1865+
names=names,
18661866
dtype=dtype,
18671867
index_col=index_col,
18681868
)
Collapse file

‎pygmt/src/blockm.py‎

Copy file name to clipboardExpand all lines: pygmt/src/blockm.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _blockm(
6464
args=build_arg_string(kwargs, infile=vintbl, outfile=vouttbl),
6565
)
6666
return lib.virtualfile_to_dataset(
67-
vfname=vouttbl, output_type=output_type, column_names=column_names
67+
vfname=vouttbl, output_type=output_type, names=column_names
6868
)
6969

7070

Collapse file

‎pygmt/src/grd2xyz.py‎

Copy file name to clipboardExpand all lines: pygmt/src/grd2xyz.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,5 @@ def grd2xyz(
168168
args=build_arg_string(kwargs, infile=vingrd, outfile=vouttbl),
169169
)
170170
return lib.virtualfile_to_dataset(
171-
vfname=vouttbl, output_type=output_type, column_names=column_names
171+
vfname=vouttbl, output_type=output_type, names=column_names
172172
)
Collapse file

‎pygmt/src/grdhisteq.py‎

Copy file name to clipboardExpand all lines: pygmt/src/grdhisteq.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def compute_bins(
241241
return lib.virtualfile_to_dataset(
242242
vfname=vouttbl,
243243
output_type=output_type,
244-
column_names=["start", "stop", "bin_id"],
244+
names=["start", "stop", "bin_id"],
245245
dtype={
246246
"start": np.float32,
247247
"stop": np.float32,
Collapse file

‎pygmt/src/grdtrack.py‎

Copy file name to clipboardExpand all lines: pygmt/src/grdtrack.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,5 @@ def grdtrack(
320320
return lib.virtualfile_to_dataset(
321321
vfname=vouttbl,
322322
output_type=output_type,
323-
column_names=column_names,
323+
names=column_names,
324324
)
Collapse file

‎pygmt/src/project.py‎

Copy file name to clipboardExpand all lines: pygmt/src/project.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,5 +258,5 @@ def project(
258258
return lib.virtualfile_to_dataset(
259259
vfname=vouttbl,
260260
output_type=output_type,
261-
column_names=column_names,
261+
names=column_names,
262262
)
Collapse file

‎pygmt/src/select.py‎

Copy file name to clipboardExpand all lines: pygmt/src/select.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,5 @@ def select(
223223
return lib.virtualfile_to_dataset(
224224
vfname=vouttbl,
225225
output_type=output_type,
226-
column_names=column_names,
226+
names=column_names,
227227
)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.