Ord | Topic | Category | Author | Date |
---|---|---|---|---|
Loading... (need help?) |
VSI Series
about
vsi
reading
List of Very Short Introduction Books.
List of VSI Books
Source: Wikipedia.org
Page created dynamically using Listing 1.
import pandas as pd
import re
from itables import show, init_notebook_mode
# init_notebook_mode(all_interactive=True)
= pd.read_html(
df 'https://en.wikipedia.org/wiki/List_of_Very_Short_Introductions_books')
= df[0]
df = ['Ord', 'Topic', 'Author', 'Date' ,'drop', 'Category']
df.columns = df.drop(columns='drop')
df # fix date
= r"\d{1,2} \w+ \d{4}( \d{1,2} \w+ \d{4}) \(2nd ed\.\)"
pattern = r"\1"
replacement 'Date'] = df['Date'].apply(lambda x: re.sub(pattern, replacement, x))
df[
# re order
= df[['Ord', 'Topic', 'Category', 'Author', 'Date']]
df ='Table of VSI books.',
show(df, caption="display nowrap compact",
classes=[25, 50, 100, -1]) lengthMenu