---
source: crates/ruff_linter/src/rules/pandas_vet/mod.rs
snapshot_kind: text
---
pandas_use_of_dot_read_table.py:4:6: PD012 Use `.read_csv` instead of `.read_table` to read CSV files
  |
3 | # Errors.
4 | df = pd.read_table("data.csv", sep=",")
  |      ^^^^^^^^^^^^^ PD012
5 | df = pd.read_table("data.csv", sep=",", header=0)
6 | filename = "data.csv"
  |

pandas_use_of_dot_read_table.py:5:6: PD012 Use `.read_csv` instead of `.read_table` to read CSV files
  |
3 | # Errors.
4 | df = pd.read_table("data.csv", sep=",")
5 | df = pd.read_table("data.csv", sep=",", header=0)
  |      ^^^^^^^^^^^^^ PD012
6 | filename = "data.csv"
7 | df = pd.read_table(filename, sep=",")
  |

pandas_use_of_dot_read_table.py:7:6: PD012 Use `.read_csv` instead of `.read_table` to read CSV files
  |
5 | df = pd.read_table("data.csv", sep=",", header=0)
6 | filename = "data.csv"
7 | df = pd.read_table(filename, sep=",")
  |      ^^^^^^^^^^^^^ PD012
8 | df = pd.read_table(filename, sep=",", header=0)
  |

pandas_use_of_dot_read_table.py:8:6: PD012 Use `.read_csv` instead of `.read_table` to read CSV files
   |
 6 | filename = "data.csv"
 7 | df = pd.read_table(filename, sep=",")
 8 | df = pd.read_table(filename, sep=",", header=0)
   |      ^^^^^^^^^^^^^ PD012
 9 | 
10 | # Non-errors.
   |
