Displays the Semilog Axis

I want to add a semilog axis for the x (frequency) axis to my plot. Please help me to solve the case. Here I show the code.

import pandas as pd
import matplotlib.pyplot as plt


class csv2df():
    
    def __init__(self):
        self.df = pd.read_csv("RMS level.csv", skiprows=[0,1,2])
        
    def plot(self):
        self.x = self.df["Hz"]
        self.y = self.df["dBSPL"]
        plt.plot(self.x, self.y)
        plt.xlabel("Frequency (Hz)")
        plt.ylabel("RMS Level (dBSPL)")
        
        plt.show()
        
data = csv2df()
data.plot()

Thanks.