We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2476744 commit 43732a7Copy full SHA for 43732a7
pygmt/clib/session.py
@@ -1765,16 +1765,10 @@ def return_table(
1765
return None
1766
# Read the virtual file as a GMT dataset and convert to pandas.DataFrame
1767
result = self.read_virtualfile(vfile, kind="dataset").contents.to_dataframe()
1768
- # assign column names
+ # Assign column names
1769
if column_names is not None:
1770
result.columns = column_names
1771
- # convert text data from object dtype to string dtype
1772
- result = result.convert_dtypes(
1773
- convert_string=True,
1774
- convert_integer=False,
1775
- convert_floating=False,
1776
- convert_boolean=False,
1777
- )
+ # Pandas.DataFrame output
1778
if output_type == "pandas":
1779
return result
1780
# NumPy.ndarray output
0 commit comments